Added waiting status to Orders
This commit is contained in:
@@ -279,6 +279,14 @@ class OrderModel {
|
||||
}
|
||||
}
|
||||
|
||||
if(array_key_exists("waiting", $filter)) {
|
||||
if($filter['waiting'] == 1) {
|
||||
$where .= " AND `Order`.waiting = 1";
|
||||
} else {
|
||||
$where .= " AND `Order`.waiting = 0";
|
||||
}
|
||||
}
|
||||
|
||||
if(array_key_exists("name", $filter)) {
|
||||
$name = FronkDB::singleton()->escape($filter['name']);
|
||||
if($name) {
|
||||
|
||||
Reference in New Issue
Block a user