Fix contract line creation should take desc even if not displayed on screen

This commit is contained in:
Maxime Kohlhaas 2016-05-09 15:32:21 +02:00
parent 03732fd1aa
commit 6278610d0a

View File

@ -319,8 +319,7 @@ if ($action == 'add' && $user->rights->contrat->creer)
$label = $lines[$i]->product_label;
}
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 {
$desc = dol_htmlentitiesbr($lines[$i]->desc);