From 2e4895dc84d395d357b081283c3f583edfacdcc4 Mon Sep 17 00:00:00 2001 From: Luca Haid Date: Wed, 16 Jul 2025 15:13:43 +0000 Subject: [PATCH] Construction consent/fix bugs --- .../ConstructionConsent/ConstructionConsentController.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/application/ConstructionConsent/ConstructionConsentController.php b/application/ConstructionConsent/ConstructionConsentController.php index 0e37962f2..4d2a9ad14 100644 --- a/application/ConstructionConsent/ConstructionConsentController.php +++ b/application/ConstructionConsent/ConstructionConsentController.php @@ -1167,7 +1167,8 @@ class ConstructionConsentController extends mfBaseController { $firstname = $ownerRecord->firstname; $lastname = $ownerRecord->lastname; - if (empty($firstname) && empty($lastname)) { + $company = $ownerRecord->company; + if ((empty($firstname) && empty($lastname)) || empty($company)) { $counts["skippedBecauseFirstnameAndLastname"]++; $counts["skipped"]++; continue;