diff --git a/application/ConstructionConsent/ConstructionConsentController.php b/application/ConstructionConsent/ConstructionConsentController.php index 5acb9d368..b9963aa46 100644 --- a/application/ConstructionConsent/ConstructionConsentController.php +++ b/application/ConstructionConsent/ConstructionConsentController.php @@ -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"]++;