FIX #29915 Better fix to show full path of category in multiselect mode.

This commit is contained in:
Laurent Destailleur 2024-06-08 19:36:15 +02:00
parent 3c961263cb
commit 09ee64c154

View file

@ -9019,7 +9019,7 @@ class Form
$tmpvalue = empty($value['label']) ? '' : $value['label'];
$tmpcolor = empty($value['color']) ? '' : $value['color'];
$tmppicto = empty($value['picto']) ? '' : $value['picto'];
$tmplabelhtml = empty($value['labelhtml']) ? '' : $value['labelhtml'];
$tmplabelhtml = empty($value['labelhtml']) ? (empty($value['data-html']) ? '' : $value['data-html']): $value['labelhtml'];
}
$newval = ($translate ? $langs->trans($tmpvalue) : $tmpvalue);
$newval = ($key_in_label ? $tmpkey . ' - ' . $newval : $newval);