This commit is contained in:
Laurent Destailleur 2023-04-14 13:18:10 +02:00
parent 4c51e35adc
commit 98e389bdce

View File

@ -1164,13 +1164,14 @@ while ($i < $imaxinloop) {
// Multicompany enabled
if (isModEnabled('multicompany') && is_object($mc) && empty($conf->global->MULTICOMPANY_TRANSVERSE_MODE)) {
if (!empty($arrayfields['u.entity']['checked'])) {
print '<td>';
if (!$obj->entity) {
print $langs->trans("AllEntities");
$labeltouse = $langs->trans("AllEntities");
} else {
$mc->getInfo($obj->entity);
print $mc->label;
$labeltouse = $mc->label;
}
print '<td class="tdoverflowmax100" title="'.dol_escape_htmltag($labeltouse).'">';
print $labeltouse;
print '</td>';
if (!$i) {
$totalarray['nbfield']++;