Fix warning

This commit is contained in:
Laurent Destailleur (aka Eldy)
2025-01-05 18:34:01 +01:00
parent 1aa703a631
commit 1cfa3b5803
44 changed files with 98 additions and 136 deletions

View File

@@ -1846,8 +1846,7 @@ class Commande extends CommonOrder
$this->lines[] = $line;
/** POUR AJOUTER AUTOMATIQUEMENT LES SOUSPRODUITS a LA COMMANDE
if (!empty($conf->global->PRODUIT_SOUSPRODUITS))
{
if (getDolGlobalString('PRODUIT_SOUSPRODUITS')) {
$prod = new Product($this->db);
$prod->fetch($idproduct);
$prod -> get_sousproduits_arbo();