diff --git a/htdocs/core/class/html.form.class.php b/htdocs/core/class/html.form.class.php index d8e05263a4e..bf2f1a7f2d6 100755 --- a/htdocs/core/class/html.form.class.php +++ b/htdocs/core/class/html.form.class.php @@ -1720,11 +1720,11 @@ class Form else if ($objp->stock <= 0) $opt.= ' class="product_line_stock_too_low"'; } $opt.= '>'; - $opt.= $objp->ref.' - '.dol_trunc($label, 99).' - '; + $opt.= $objp->ref.' - '.dol_trunc($label, 99, '', '', 1).' - '; $objRef = $objp->ref; if (! empty($filterkey) && $filterkey != '') $objRef=preg_replace('/('.preg_quote($filterkey).')/i','$1',$objRef,1); - $outval.=$objRef.' - '.dol_trunc($label, 99).' - '; + $outval.=$objRef.' - '.dol_trunc($label, 99, '', '', 1).' - '; $found=0;