Preorder/add new filter
This commit is contained in:
@@ -871,9 +871,9 @@ class PreorderModel
|
||||
if (is_array($tool_building_type) && count($tool_building_type)) {
|
||||
$where .= " AND adb_hausnummer.tool_building_type IN ('" . implode("','", $tool_building_type) . "')";
|
||||
} else {
|
||||
$tool_building_type = FronkDB::singleton()->escape($filter['connection_type']);
|
||||
if ($tool_building_type) {
|
||||
$where .= " AND adb_hausnummer.tool_building_type like '%$tool_building_type%'";
|
||||
$tool_building_type = FronkDB::singleton()->escape($filter['tool_building_type']);
|
||||
if ($tool_building_type === '0' || $tool_building_type) {
|
||||
$where .= " AND adb_hausnummer.tool_building_type = $tool_building_type ";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user