Construction consent/fix event

This commit is contained in:
Luca Haid
2025-03-12 14:01:55 +00:00
parent fc4d70764d
commit 6dc7fc58fc
4 changed files with 31 additions and 13 deletions

View File

@@ -580,6 +580,13 @@ class ConstructionConsent extends mfBaseModel {
}
}
if (array_key_exists("cwo", $filter)) {
$where .= " AND EXISTS
(SELECT 1 FROM ConstructionConsentOwner co WHERE co.constructionconsent_id = ConstructionConsent.id AND
(co.firstname LIKE '%".$filter['cwo']."%' OR co.lastname LIKE '%".$filter['cwo']."%'))";
}
if(array_key_exists("add-where", $filter)) {