From 23f9f13fe23db0c39a203438acb179d750386793 Mon Sep 17 00:00:00 2001 From: Luca Haid Date: Tue, 22 Apr 2025 18:00:50 +0200 Subject: [PATCH] fixed when creating owner --- .../ConstructionConsent/ConstructionConsentController.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/application/ConstructionConsent/ConstructionConsentController.php b/application/ConstructionConsent/ConstructionConsentController.php index b65612fb8..fafdb664b 100644 --- a/application/ConstructionConsent/ConstructionConsentController.php +++ b/application/ConstructionConsent/ConstructionConsentController.php @@ -1066,6 +1066,7 @@ class ConstructionConsentController extends mfBaseController { if ($isNew) { $ownerRecord = new ConstructionConsentOwner(); $ownerRecord->constructionconsent_id = $consentRecord->id; + $ownerRecord->create_by = $this->user->id; } $addressKey = null; foreach(array_keys($ownerData) as $k) { if(strpos($k,"ADR") === 0) {$addressKey=$k; break;} } @@ -1084,6 +1085,7 @@ class ConstructionConsentController extends mfBaseController { $ownerRecord->city = $city; $ownerRecord->zip = $postcode; $ownerRecord->country = $country; + $ownerRecord->edit_by = $this->user->id; $ownerRecord->save(); $counts[$isNew ? "created" : "updated"]++;