Contractqueue: commit to Contract finished
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user