CIM71 - Add related users to assest, CIM72 Add related users to accounts

This commit is contained in:
“VeLiTi”
2024-05-06 12:32:47 +02:00
parent 143fb60be5
commit b2601ff32b
14 changed files with 267 additions and 64 deletions

View File

@@ -51,6 +51,10 @@ if(isset($get_content) && $get_content!=''){
//build up search
$clause .= ' AND username like :'.$v[0];
}
elseif ($v[0] == 'partnerid') {
//check accounthierarchy related users
$clause .= ' AND partnerhierarchy like :'.$v[0];
}
else {//create clause
$clause .= ' AND '.$v[0].' = :'.$v[0];
}
@@ -86,6 +90,10 @@ if (!empty($criterias)){
$search_value = '%'.$value.'%';
$stmt->bindValue($key, $search_value, PDO::PARAM_STR);
}
elseif ($key == 'partnerid'){
$search_value = '%"_"'.$value.'-%';
$stmt->bindValue($key, $search_value, PDO::PARAM_STR);
}
else {
$stmt->bindValue($key, $value, PDO::PARAM_STR);
}