Construction consent/fix bugs

This commit is contained in:
Luca Haid
2025-07-16 15:13:43 +00:00
parent a4f57fbf8f
commit 2e4895dc84

View File

@@ -1167,7 +1167,8 @@ class ConstructionConsentController extends mfBaseController {
$firstname = $ownerRecord->firstname;
$lastname = $ownerRecord->lastname;
if (empty($firstname) && empty($lastname)) {
$company = $ownerRecord->company;
if ((empty($firstname) && empty($lastname)) || empty($company)) {
$counts["skippedBecauseFirstnameAndLastname"]++;
$counts["skipped"]++;
continue;