From eaed176e6a6482e1db6387e32dba0304f4b0895f Mon Sep 17 00:00:00 2001 From: Luca Haid Date: Thu, 15 May 2025 15:38:19 +0200 Subject: [PATCH] fixed import --- .../ConstructionConsent/ConstructionConsentController.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/application/ConstructionConsent/ConstructionConsentController.php b/application/ConstructionConsent/ConstructionConsentController.php index 0f1ae7b93..48effd9dd 100644 --- a/application/ConstructionConsent/ConstructionConsentController.php +++ b/application/ConstructionConsent/ConstructionConsentController.php @@ -1117,6 +1117,7 @@ class ConstructionConsentController extends mfBaseController { $country = $addressParts[2] ?? null; } + $ownerRecord->firstname = $ownerData["VN"] ?? null; $ownerRecord->lastname = (($ownerData["JUR"] ?? 'nein') === "ja") ? ($ownerData['BEZ'] ?? $ownerData["NN"]) : ($ownerData["NN"] ?? null); $ownerRecord->birthdate = $birthdate; @@ -1126,7 +1127,9 @@ class ConstructionConsentController extends mfBaseController { $ownerRecord->country = $country; $ownerRecord->edit_by = $this->me->id; - if (empty($ownerRecord->firstname) && empty($ownerRecord->lastname)) { + $firstname = $ownerRecord->firstname; + $lastname = $ownerRecord->lastname; + if (empty($firstname) && empty($lastname)) { $counts["skippedBecauseFirstnameAndLastname"]++; $counts["skipped"]++; continue;