Merge branch 'ConstructionConsent/fix-bugs' into 'master'

Construction consent/fix bugs

See merge request fronk/thetool!1548
This commit is contained in:
Luca Haid
2025-07-16 15:06:59 +00:00

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 {