From 09ee64c15463dfe89053e1cea1592a8038c8cd3a Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sat, 8 Jun 2024 19:36:15 +0200 Subject: [PATCH] FIX #29915 Better fix to show full path of category in multiselect mode. --- htdocs/core/class/html.form.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/core/class/html.form.class.php b/htdocs/core/class/html.form.class.php index 3bfdb67b65b..10a86497598 100644 --- a/htdocs/core/class/html.form.class.php +++ b/htdocs/core/class/html.form.class.php @@ -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);