Added pop_id filter to Patching/Index

This commit is contained in:
Frank Schubert
2021-09-23 21:28:00 +02:00
parent 8a9e29087a
commit dd2d834c92
3 changed files with 28 additions and 9 deletions

View File

@@ -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) {