Merge branch 'ConstructionConsent/add-new-import-cols' into 'master'
add new import columns See merge request fronk/thetool!1315
This commit is contained in:
@@ -1117,6 +1117,12 @@ class ConstructionConsentController extends mfBaseController {
|
|||||||
$ownerRecord->zip = $postcode;
|
$ownerRecord->zip = $postcode;
|
||||||
$ownerRecord->country = $country;
|
$ownerRecord->country = $country;
|
||||||
$ownerRecord->edit_by = $this->me->id;
|
$ownerRecord->edit_by = $this->me->id;
|
||||||
|
|
||||||
|
if (empty($ownerRecord->firstname) && empty($ownerRecord->lastname)) {
|
||||||
|
$counts["skipped"]++;
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
$ownerRecord->save();
|
$ownerRecord->save();
|
||||||
|
|
||||||
$counts[$isNew ? "created" : "updated"]++;
|
$counts[$isNew ? "created" : "updated"]++;
|
||||||
|
|||||||
Reference in New Issue
Block a user