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