Preorder/add new filter

This commit is contained in:
Luca Haid
2025-12-02 14:46:22 +00:00
parent 1985865d1f
commit 09ffd911fc
20 changed files with 1486 additions and 66 deletions

View File

@@ -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 ";
}
}
}