Contractqueue: commit to Contract finished

This commit is contained in:
Frank Schubert
2024-04-18 22:58:37 +02:00
parent b9f270fb10
commit e388c6e066
12 changed files with 932 additions and 721 deletions

View File

@@ -160,8 +160,19 @@ class ContractLinkModel {
$where .= " AND ContractLink.origin_contract_id = '$origin_contract_id'";
}
}
if(array_key_exists("type", $filter)) {
$type = $filter["type"];
if(is_array($type) && count($type)) {
$where .= " AND ContractLink.type IN ('".join("','", $type)."')";
} else {
$type = $db->escape($filter['type']);
if($type) {
$where .= " AND ContractLink.type = '$type'";
}
}
}
//var_dump($filter, $where);exit;