From d65e67571d290bfb41b08eb67dfc1aea6f41828f Mon Sep 17 00:00:00 2001 From: Luca Haid Date: Mon, 12 May 2025 18:01:06 +0200 Subject: [PATCH] skip existing --- .../ConstructionConsent/ConstructionConsentController.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/application/ConstructionConsent/ConstructionConsentController.php b/application/ConstructionConsent/ConstructionConsentController.php index b9963aa46..7e26efd95 100644 --- a/application/ConstructionConsent/ConstructionConsentController.php +++ b/application/ConstructionConsent/ConstructionConsentController.php @@ -1098,6 +1098,9 @@ class ConstructionConsentController extends mfBaseController { $ownerRecord = new ConstructionConsentOwner(); $ownerRecord->constructionconsent_id = $consentRecord->id; $ownerRecord->create_by = $this->me->id; + } else { + $counts["skipped"]++; + continue; } $addressKey = null; foreach(array_keys($ownerData) as $k) { if(strpos($k,"ADR") === 0) {$addressKey=$k; break;} }