FIX: Box must not visible of module it depends on are not enabled
This commit is contained in:
parent
22bed60a07
commit
1d02f6446f
@ -34,6 +34,8 @@ class box_graph_product_distribution extends ModeleBoxes
|
|||||||
var $depends = array("product|service");
|
var $depends = array("product|service");
|
||||||
|
|
||||||
var $db;
|
var $db;
|
||||||
|
var $param;
|
||||||
|
var $enabled=1;
|
||||||
|
|
||||||
var $info_box_head = array();
|
var $info_box_head = array();
|
||||||
var $info_box_contents = array();
|
var $info_box_contents = array();
|
||||||
@ -50,6 +52,7 @@ class box_graph_product_distribution extends ModeleBoxes
|
|||||||
global $conf;
|
global $conf;
|
||||||
|
|
||||||
$this->db=$db;
|
$this->db=$db;
|
||||||
|
$this->enabled=($conf->facture->enabled || $conf->propal->enabled || $conf->commande->enabled);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user