Merge branch 'ConstructionConsent/skip-existing' into 'master'

skip existing

See merge request fronk/thetool!1319
This commit is contained in:
Luca Haid
2025-05-12 16:01:39 +00:00

View File

@@ -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;} }