Skip to content
Code-Schnipsel Gruppen Projekte
Commit e319e9ae erstellt von Henning Leutz's avatar Henning Leutz :martial_arts_uniform:
Dateien durchsuchen

fix: update company detection in Address.php

This commit introduces a fix in the 'Address.php' file. It improves the logic for detecting whether
a user belongs to a company. Now, if the 'isCompany' attribute is set and the 'company' attribute
is not empty, the user will be considered part of a company.

Related: pcsg/buero#515
Übergeordneter 82c2b8cb
No related branches found
No related tags found
2 Merge Requests!182Update 'next-4.x' with latest changes from 'main',!181fix: update company detection in Address.php
Pipeline #16606 bestanden mit Phase
in 3 Minuten und 17 Sekunden
......@@ -62,6 +62,11 @@ public function getDisplay(array $options = []): string
if ($this->User && $this->User->isCompany()) {
$isCompany = $this->User->isCompany();
} elseif (
!empty($this->getAttribute('isCompany'))
&& !empty($this->getAttribute('company'))
) {
$isCompany = true;
}
if (!empty($this->getAttribute('contactPerson'))) {
......
0% oder .
You are about to add 0 people to the discussion. Proceed with caution.
Bearbeitung dieser Nachricht zuerst beenden!
Bitte registrieren oder zum Kommentieren