Merge branch 'ConstructionConsent/fix-bugs' into 'master'

Construction consent/fix bugs

See merge request fronk/thetool!1549
This commit is contained in:
Luca Haid
2025-07-16 15:13:44 +00:00

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;