Construction consent/fix bugs

This commit is contained in:
Luca Haid
2025-07-16 15:06:59 +00:00
parent b1ca0624ea
commit 3d62097d36

View File

@@ -231,7 +231,7 @@ class ConstructionConsentOwner extends mfBaseModel {
}
foreach($filter as $field => $value)
if(in_array($field, ["firstname", "lastname", "street", "zip", "city", "country", "phone", "phone2", "birthdate", "fax", "email"]))
if(in_array($field, ["company", "firstname", "lastname", "street", "zip", "city", "country", "phone", "phone2", "birthdate", "fax", "email"]))
if(is_array($value)) {
$where .= " AND $field IN ('".implode("','", $value)."')";
} else {