Fix: Mauvaise mise en page quand libellé de produits trop long

This commit is contained in:
Laurent Destailleur 2005-12-24 23:18:10 +00:00
parent aa7931f5ee
commit 0ec2847183

View File

@ -640,7 +640,7 @@ class Form
{ {
$objp = $this->db->fetch_object($result); $objp = $this->db->fetch_object($result);
$opt = '<option value="'.$objp->rowid.'">['.$objp->ref.'] '; $opt = '<option value="'.$objp->rowid.'">['.$objp->ref.'] ';
$opt.= $objp->label.' - '; $opt.= dolibarr_trunc($objp->label,40).' - ';
$opt.= $objp->price." ".$langs->trans("Currency".$conf->monnaie)." / ".$objp->quantity." ".$langs->trans("Units"); $opt.= $objp->price." ".$langs->trans("Currency".$conf->monnaie)." / ".$objp->quantity." ".$langs->trans("Units");
if ($objp->quantity > 1) if ($objp->quantity > 1)
{ {