CMXX - Link to asset in contract

This commit is contained in:
“VeLiTi”
2024-10-21 17:03:21 +02:00
parent 43144ca91b
commit be96b12e66
10 changed files with 384 additions and 26 deletions

View File

@@ -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);
}