Skip to content
Snippets Groups Projects
Commit 1d02f644 authored by Laurent Destailleur's avatar Laurent Destailleur
Browse files

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

parent 22bed60a
No related branches found
No related tags found
No related merge requests found
......@@ -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);
}
/**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment