Check PRODUIT_DESC_IN_FORM before printing the products desc

This commit is contained in:
damien clochard 2014-11-14 00:21:39 +01:00
parent 6bac744709
commit 8dba0f9c85

View File

@ -1290,7 +1290,8 @@ else
$productstatic->ref=$objp->label;
print $productstatic->getNomUrl(0,'',16);
}
if ($objp->description) print '<br>'.dol_nl2br($objp->description);
if (! empty($conf->global->PRODUIT_DESC_IN_FORM) and $objp->description)
print '<br>'.dol_nl2br($objp->description);
print '</td>';
}
else