Fix: Avoid error for free products. Also add hidden otion to enable
this. In most cases, we don't want to do this.
This commit is contained in:
parent
7229b728a3
commit
9fa6d4ccdf
@ -1033,7 +1033,7 @@ function pdf_getlinedesc($object,$i,$outputlangs,$hideref=0,$hidedesc=0,$issuppl
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Add an additional description for the category products
|
// Add an additional description for the category products
|
||||||
if (! empty($conf->categorie->enabled))
|
if (! empty($conf->global->CATEGORY_ADD_DESC_INTO_DOC) && $idprod && ! empty($conf->categorie->enabled))
|
||||||
{
|
{
|
||||||
include_once DOL_DOCUMENT_ROOT.'/categories/class/categorie.class.php';
|
include_once DOL_DOCUMENT_ROOT.'/categories/class/categorie.class.php';
|
||||||
$categstatic=new Categorie($db);
|
$categstatic=new Categorie($db);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user