From a4a493ed92a81d1e00af6ede126dd16762eef5af Mon Sep 17 00:00:00 2001 From: Luca Haid Date: Mon, 12 May 2025 12:42:53 +0200 Subject: [PATCH] add new import columns --- .../ConstructionConsent/ConstructionConsentController.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/application/ConstructionConsent/ConstructionConsentController.php b/application/ConstructionConsent/ConstructionConsentController.php index 5acb9d368..b9963aa46 100644 --- a/application/ConstructionConsent/ConstructionConsentController.php +++ b/application/ConstructionConsent/ConstructionConsentController.php @@ -1117,6 +1117,12 @@ class ConstructionConsentController extends mfBaseController { $ownerRecord->zip = $postcode; $ownerRecord->country = $country; $ownerRecord->edit_by = $this->me->id; + + if (empty($ownerRecord->firstname) && empty($ownerRecord->lastname)) { + $counts["skipped"]++; + continue; + } + $ownerRecord->save(); $counts[$isNew ? "created" : "updated"]++;