Merge pull request #21500 from cfoellmann/PR/fix-establishment-nom

fix establishment object UI display
This commit is contained in:
Laurent Destailleur 2022-07-12 18:40:48 +02:00 committed by GitHub
commit 55875fcfab
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -445,6 +445,9 @@ class Establishment extends CommonObject
$label .= '<br>';
$label .= '<b>'.$langs->trans('Ref').':</b> '.$this->ref;
$label .= '<br>';
$label .= '<b>'.$langs->trans('Residence').':</b> '.$this->address.', '.$this->zip.' '.$this->town;
$url = DOL_URL_ROOT.'/hrm/establishment/card.php?id='.$this->id;
if ($option != 'nolink') {
@ -489,7 +492,7 @@ class Establishment extends CommonObject
}
if ($withpicto != 2) {
$result .= $this->ref;
$result .= $this->label;
}
$result .= $linkend;