added new tool type field
This commit is contained in:
@@ -237,6 +237,17 @@ class ADBHausnummerModel {
|
||||
$where .= " AND Hausnummer.`oaid` = '$oaid'";
|
||||
}
|
||||
}
|
||||
|
||||
if(array_key_exists("tool_building_type", $filter)) {
|
||||
$tool_building_type = $filter['tool_building_type'];
|
||||
if(is_numeric($tool_building_type)) {
|
||||
$where .= " AND Hausnummer.tool_building_type=$tool_building_type";
|
||||
} elseif(is_array($tool_building_type) && count($tool_building_type)) {
|
||||
$where .= " AND Hausnummer.tool_building_type IN (". implode(",", $tool_building_type).")";
|
||||
} elseif($tool_building_type === null) {
|
||||
$where .= " AND Hausnummer.tool_building_type IS NULL";
|
||||
}
|
||||
}
|
||||
|
||||
if(array_key_exists("oaid%", $filter)) {
|
||||
$oaid = FronkDB::singleton()->escape($filter['oaid%']);
|
||||
|
||||
Reference in New Issue
Block a user