diff --git a/htdocs/core/class/html.form.class.php b/htdocs/core/class/html.form.class.php index 525e6e1bbd0..56d0a3d69e7 100644 --- a/htdocs/core/class/html.form.class.php +++ b/htdocs/core/class/html.form.class.php @@ -4042,10 +4042,11 @@ class Form $maxlengtharticle = getDolGlobalInt('PRODUCT_MAX_LENGTH_COMBO', 48); - $label = $objp->label; + $productlabel = $objp->label; if (!empty($objp->label_translated)) { - $label = $objp->label_translated; + $productlabel = $objp->label_translated; } + $label = $productlabel; if (!empty($filterkey) && $filterkey != '') { $label = preg_replace('/(' . preg_quote($filterkey, '/') . ')/i', '$1', $label, 1); } @@ -4121,18 +4122,19 @@ class Form } } - // Set $labeltoshow - $labeltoshow = ''; - $labeltoshow .= $objp->ref; + // Set full plain label for the native