From 9f1ec0e710aedf3e7a8037cc0bbfbf3c9d1d9a06 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20FRANCE?= Date: Tue, 9 Dec 2014 20:52:55 +0100 Subject: [PATCH] Update html.form.class.php --- htdocs/core/class/html.form.class.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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;