Merge branch 'ConstructionConsent/fix-addr-search' into 'master'
fixed when creating owner See merge request fronk/thetool!1240
This commit is contained in:
@@ -1067,6 +1067,7 @@ class ConstructionConsentController extends mfBaseController {
|
|||||||
if ($isNew) {
|
if ($isNew) {
|
||||||
$ownerRecord = new ConstructionConsentOwner();
|
$ownerRecord = new ConstructionConsentOwner();
|
||||||
$ownerRecord->constructionconsent_id = $consentRecord->id;
|
$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;} }
|
$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->city = $city;
|
||||||
$ownerRecord->zip = $postcode;
|
$ownerRecord->zip = $postcode;
|
||||||
$ownerRecord->country = $country;
|
$ownerRecord->country = $country;
|
||||||
|
$ownerRecord->edit_by = $this->user->id;
|
||||||
$ownerRecord->save();
|
$ownerRecord->save();
|
||||||
|
|
||||||
$counts[$isNew ? "created" : "updated"]++;
|
$counts[$isNew ? "created" : "updated"]++;
|
||||||
|
|||||||
Reference in New Issue
Block a user