From b2c99e8bffe9b2c614a3b901606bc0ae529adc3b Mon Sep 17 00:00:00 2001 From: Luca Haid Date: Wed, 21 May 2025 13:18:39 +0200 Subject: [PATCH] fixed filter --- application/ConstructionConsent/ConstructionConsent.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/application/ConstructionConsent/ConstructionConsent.php b/application/ConstructionConsent/ConstructionConsent.php index da1c952a2..765795cd2 100644 --- a/application/ConstructionConsent/ConstructionConsent.php +++ b/application/ConstructionConsent/ConstructionConsent.php @@ -524,6 +524,13 @@ FROM ConstructionConsent } } + if(array_key_exists("kg", $filter)) { + $ez = FronkDB::singleton()->escape($filter["kg"]); + if($ez) { + $where .= " AND kg='$ez'"; + } + } + if(array_key_exists("gst", $filter)) { $gst = FronkDB::singleton()->escape($filter["gst"]); if($gst) {