New Buildings are checked for existing adresses

This commit is contained in:
Frank Schubert
2021-08-17 19:50:53 +02:00
parent 13b8336bd3
commit 6b64b16ac3
2 changed files with 32 additions and 0 deletions

View File

@@ -157,6 +157,27 @@ class BuildingModel {
}
}
if(array_key_exists("street", $filter)) {
$street = FronkDB::singleton()->escape($filter["street"]);
if($street) {
$where .= " AND street='$street'";
}
}
if(array_key_exists("zip", $filter)) {
$zip = FronkDB::singleton()->escape($filter["zip"]);
if($zip) {
$where .= " AND zip='$zip'";
}
}
if(array_key_exists("city", $filter)) {
$city = FronkDB::singleton()->escape($filter["city"]);
if($city) {
$where .= " AND city='$city'";
}
}
//var_dump($filter, $where);exit;
return $where;
}