CMXX - Link to asset in contract
This commit is contained in:
@@ -55,6 +55,10 @@ if(isset($get_content) && $get_content!=''){
|
||||
//build up search
|
||||
$clause .= ' AND reference like :'.$v[0];
|
||||
}
|
||||
elseif ($v[0] == 'servicetool') {
|
||||
//build up search
|
||||
$clause .= ' AND servicetool like :'.$v[0];
|
||||
}
|
||||
else {//create clause
|
||||
$clause .= ' AND '.$v[0].' = :'.$v[0];
|
||||
}
|
||||
@@ -94,6 +98,10 @@ if (!empty($criterias)){
|
||||
$search_value = '%'.$value.'%';
|
||||
$stmt->bindValue($key, $search_value, PDO::PARAM_STR);
|
||||
}
|
||||
elseif ($key == 'servicetool'){
|
||||
$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