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);