add new import columns

This commit is contained in:
Luca Haid
2025-05-12 12:42:53 +02:00
parent 003ed5d66a
commit a4a493ed92

View File

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