Merge branch 'ConstructionConsent/fix-addr-search' into 'master'

Construction consent/fix addr search

See merge request fronk/thetool!1241
This commit is contained in:
Luca Haid
2025-04-22 16:07:00 +00:00

View File

@@ -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"]++;