Fixed showing orders with not required termination
This commit is contained in:
@@ -286,6 +286,8 @@ class OrderModel {
|
||||
$termination_id = $filter['termination_id'];
|
||||
if(is_numeric($termination_id)) {
|
||||
$where .= " AND OrderProduct.termination_id=$termination_id";
|
||||
} elseif($termination_id === null) {
|
||||
$where .= " AND OrderProduct.termination_id IS NULL";
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user