From b6bcf26dd9ab1a46d58762b6a6ad5a7daa90e764 Mon Sep 17 00:00:00 2001 From: Luca Haid Date: Tue, 22 Apr 2025 16:06:59 +0000 Subject: [PATCH] Construction consent/fix addr search --- .../ConstructionConsent/ConstructionConsentController.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/application/ConstructionConsent/ConstructionConsentController.php b/application/ConstructionConsent/ConstructionConsentController.php index 97536e1e0..da26b9bec 100644 --- a/application/ConstructionConsent/ConstructionConsentController.php +++ b/application/ConstructionConsent/ConstructionConsentController.php @@ -1067,7 +1067,7 @@ class ConstructionConsentController extends mfBaseController { if ($isNew) { $ownerRecord = new ConstructionConsentOwner(); $ownerRecord->constructionconsent_id = $consentRecord->id; - $ownerRecord->create_by = $this->user->id; + $ownerRecord->create_by = $this->me->id; } $addressKey = null; foreach(array_keys($ownerData) as $k) { if(strpos($k,"ADR") === 0) {$addressKey=$k; break;} } @@ -1086,7 +1086,7 @@ class ConstructionConsentController extends mfBaseController { $ownerRecord->city = $city; $ownerRecord->zip = $postcode; $ownerRecord->country = $country; - $ownerRecord->edit_by = $this->user->id; + $ownerRecord->edit_by = $this->me->id; $ownerRecord->save(); $counts[$isNew ? "created" : "updated"]++;