Fix contract line creation was adding all proposal lines desc

This commit is contained in:
Maxime Kohlhaas 2016-05-09 15:31:44 +02:00
parent 06eeb0ced4
commit 03732fd1aa

View File

@ -320,7 +320,7 @@ if ($action == 'add' && $user->rights->contrat->creer)
} }
if ($conf->global->PRODUIT_DESC_IN_FORM) if ($conf->global->PRODUIT_DESC_IN_FORM)
$desc .= ($lines[$i]->desc && $lines[$i]->desc!=$lines[$i]->libelle)?dol_htmlentitiesbr($lines[$i]->desc):''; $desc = ($lines[$i]->desc && $lines[$i]->desc!=$lines[$i]->libelle)?dol_htmlentitiesbr($lines[$i]->desc):'';
} }
else { else {
$desc = dol_htmlentitiesbr($lines[$i]->desc); $desc = dol_htmlentitiesbr($lines[$i]->desc);