Added pop_id filter to Patching/Index
This commit is contained in:
@@ -211,6 +211,13 @@ class PatchingModel {
|
||||
}
|
||||
}
|
||||
|
||||
if(array_key_exists("pop_id", $filter)) {
|
||||
$pop_id = $filter['pop_id'];
|
||||
if(is_numeric($pop_id)) {
|
||||
$where .= " AND Building.pop_id=$pop_id";
|
||||
}
|
||||
}
|
||||
|
||||
if(array_key_exists("code", $filter)) {
|
||||
$code = FronkDB::singleton()->escape($filter['code']);
|
||||
if($code) {
|
||||
|
||||
Reference in New Issue
Block a user