FIX: Box must not visible of module it depends on are not enabled

This commit is contained in:
Laurent Destailleur 2016-03-26 11:52:59 +01:00
parent 22bed60a07
commit 1d02f6446f

View File

@ -34,6 +34,8 @@ class box_graph_product_distribution extends ModeleBoxes
var $depends = array("product|service");
var $db;
var $param;
var $enabled=1;
var $info_box_head = array();
var $info_box_contents = array();
@ -50,6 +52,7 @@ class box_graph_product_distribution extends ModeleBoxes
global $conf;
$this->db=$db;
$this->enabled=($conf->facture->enabled || $conf->propal->enabled || $conf->commande->enabled);
}
/**