Update html.form.class.php

This commit is contained in:
Frédéric FRANCE 2014-12-09 20:52:55 +01:00
parent 66f634f217
commit 9f1ec0e710

View File

@ -1720,11 +1720,11 @@ class Form
else if ($objp->stock <= 0) $opt.= ' class="product_line_stock_too_low"'; else if ($objp->stock <= 0) $opt.= ' class="product_line_stock_too_low"';
} }
$opt.= '>'; $opt.= '>';
$opt.= $objp->ref.' - '.dol_trunc($label, 99).' - '; $opt.= $objp->ref.' - '.dol_trunc($label, 99, '', '', 1).' - ';
$objRef = $objp->ref; $objRef = $objp->ref;
if (! empty($filterkey) && $filterkey != '') $objRef=preg_replace('/('.preg_quote($filterkey).')/i','<strong>$1</strong>',$objRef,1); if (! empty($filterkey) && $filterkey != '') $objRef=preg_replace('/('.preg_quote($filterkey).')/i','<strong>$1</strong>',$objRef,1);
$outval.=$objRef.' - '.dol_trunc($label, 99).' - '; $outval.=$objRef.' - '.dol_trunc($label, 99, '', '', 1).' - ';
$found=0; $found=0;