ContractConfig ausgebaut

This commit is contained in:
Frank Schubert
2022-11-17 23:10:08 +01:00
parent e354dea9e8
commit e38c057ef3
15 changed files with 379 additions and 34 deletions

View File

@@ -102,6 +102,20 @@ class ProducttechAttributeModel {
$db = FronkDB::singleton();
if(array_key_exists("forproduct", $filter)) {
$forproduct = $db->escape($filter['forproduct']);
if(is_numeric($forproduct)) {
$where .= " AND `forproduct` = $forproduct";
}
}
if(array_key_exists("forcontract", $filter)) {
$forcontract = $db->escape($filter['forcontract']);
if(is_numeric($forcontract)) {
$where .= " AND `forcontract` = $forcontract";
}
}
//var_dump($filter);exit;
if(array_key_exists("name", $filter)) {
$name = $db->escape($filter['name']);