Fix: Error if subproducts enabled
This commit is contained in:
parent
bccfe541ca
commit
5d2d005e13
@ -470,7 +470,7 @@ if ($id > 0 || ! empty($ref))
|
||||
print "</tr>";
|
||||
|
||||
// associations sous produits
|
||||
if ($objp->fk_product > 0)
|
||||
if (! empty($conf->global->PRODUIT_SOUSPRODUITS) && $objp->fk_product > 0)
|
||||
{
|
||||
$product->get_sousproduits_arbo ();
|
||||
$prods_arbo = $product->get_arbo_each_prod($qtyProdCom);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user