CIM71 - Add related users to assest, CIM72 Add related users to accounts
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user