diff --git a/application/ConstructionConsent/ConstructionConsentController.php b/application/ConstructionConsent/ConstructionConsentController.php index 87e02d1a1..97536e1e0 100644 --- a/application/ConstructionConsent/ConstructionConsentController.php +++ b/application/ConstructionConsent/ConstructionConsentController.php @@ -1067,6 +1067,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;} } @@ -1085,6 +1086,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"]++;