From ee0e2e5e16fcd4a5e55a7edeeb772c54a2230641 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Tue, 16 Dec 2025 16:05:27 +0100 Subject: [PATCH] FIX #36667 --- htdocs/core/boxes/box_activity.php | 2 +- htdocs/core/boxes/box_customers_outstanding_bill_reached.php | 2 +- htdocs/core/boxes/box_factures.php | 2 +- htdocs/core/boxes/box_factures_fourn.php | 2 +- htdocs/core/boxes/box_factures_fourn_imp.php | 2 +- htdocs/core/boxes/box_factures_imp.php | 2 +- htdocs/core/boxes/box_ficheinter.php | 2 +- htdocs/core/boxes/box_graph_product_distribution.php | 2 +- htdocs/core/boxes/box_produits.php | 2 +- htdocs/core/boxes/box_produits_alerte_stock.php | 2 +- htdocs/core/boxes/box_propales.php | 2 +- htdocs/core/boxes/box_services_contracts.php | 2 +- htdocs/core/boxes/box_services_expired.php | 2 +- htdocs/core/boxes/box_task.php | 4 ++-- 14 files changed, 15 insertions(+), 15 deletions(-) diff --git a/htdocs/core/boxes/box_activity.php b/htdocs/core/boxes/box_activity.php index 6d076b012db..914ac00ef55 100644 --- a/htdocs/core/boxes/box_activity.php +++ b/htdocs/core/boxes/box_activity.php @@ -34,7 +34,7 @@ class box_activity extends ModeleBoxes public $boxcode = "activity"; public $boximg = "object_bill"; public $boxlabel = 'BoxGlobalActivity'; - public $depends = array("facture"); + public $depends = array("invoice|propal|order"); public $enabled = 1; diff --git a/htdocs/core/boxes/box_customers_outstanding_bill_reached.php b/htdocs/core/boxes/box_customers_outstanding_bill_reached.php index ef252ca29cf..f70e734e8a2 100644 --- a/htdocs/core/boxes/box_customers_outstanding_bill_reached.php +++ b/htdocs/core/boxes/box_customers_outstanding_bill_reached.php @@ -36,7 +36,7 @@ class box_customers_outstanding_bill_reached extends ModeleBoxes public $boxcode = "customersoutstandingbillreached"; public $boximg = "object_company"; public $boxlabel = "BoxCustomersOutstandingBillReached"; - public $depends = array("facture", "societe"); + public $depends = array("invoice", "societe"); public $enabled = 1; diff --git a/htdocs/core/boxes/box_factures.php b/htdocs/core/boxes/box_factures.php index 7130b514233..1a3a69d4423 100644 --- a/htdocs/core/boxes/box_factures.php +++ b/htdocs/core/boxes/box_factures.php @@ -34,7 +34,7 @@ class box_factures extends ModeleBoxes public $boxcode = "lastcustomerbills"; public $boximg = "object_bill"; public $boxlabel = "BoxLastCustomerBills"; - public $depends = array("facture"); + public $depends = array("invoice"); /** * Constructor diff --git a/htdocs/core/boxes/box_factures_fourn.php b/htdocs/core/boxes/box_factures_fourn.php index 9f90f60f3ad..5663a96dfe1 100644 --- a/htdocs/core/boxes/box_factures_fourn.php +++ b/htdocs/core/boxes/box_factures_fourn.php @@ -35,7 +35,7 @@ class box_factures_fourn extends ModeleBoxes public $boxcode = "lastsupplierbills"; public $boximg = "object_bill"; public $boxlabel = "BoxLastSupplierBills"; - public $depends = array("facture", "fournisseur"); + public $depends = array("invoice", "fournisseur"); /** * Constructor diff --git a/htdocs/core/boxes/box_factures_fourn_imp.php b/htdocs/core/boxes/box_factures_fourn_imp.php index 188fc5be4c5..818d5e46cac 100644 --- a/htdocs/core/boxes/box_factures_fourn_imp.php +++ b/htdocs/core/boxes/box_factures_fourn_imp.php @@ -34,7 +34,7 @@ class box_factures_fourn_imp extends ModeleBoxes public $boxcode = "oldestunpaidsupplierbills"; public $boximg = "object_bill"; public $boxlabel = "BoxOldestUnpaidSupplierBills"; - public $depends = array("facture", "fournisseur"); + public $depends = array("invoice", "fournisseur"); /** * Constructor diff --git a/htdocs/core/boxes/box_factures_imp.php b/htdocs/core/boxes/box_factures_imp.php index c59f62a80d9..914687414da 100644 --- a/htdocs/core/boxes/box_factures_imp.php +++ b/htdocs/core/boxes/box_factures_imp.php @@ -38,7 +38,7 @@ class box_factures_imp extends ModeleBoxes public $boxcode = "oldestunpaidcustomerbills"; public $boximg = "object_bill"; public $boxlabel = "BoxOldestUnpaidCustomerBills"; - public $depends = array("facture"); + public $depends = array("invoice"); /** * Constructor diff --git a/htdocs/core/boxes/box_ficheinter.php b/htdocs/core/boxes/box_ficheinter.php index d73e3d862c0..d9821886449 100644 --- a/htdocs/core/boxes/box_ficheinter.php +++ b/htdocs/core/boxes/box_ficheinter.php @@ -35,7 +35,7 @@ class box_ficheinter extends ModeleBoxes public $boxcode = "ficheinter"; public $boximg = "object_intervention"; public $boxlabel = "BoxFicheInter"; - public $depends = array("ficheinter"); // conf->contrat->enabled + public $depends = array("intervention"); /** * Constructor diff --git a/htdocs/core/boxes/box_graph_product_distribution.php b/htdocs/core/boxes/box_graph_product_distribution.php index 14e1740e75c..b7343d24cf0 100644 --- a/htdocs/core/boxes/box_graph_product_distribution.php +++ b/htdocs/core/boxes/box_graph_product_distribution.php @@ -33,7 +33,7 @@ class box_graph_product_distribution extends ModeleBoxes public $boxcode = "productdistribution"; public $boximg = "object_product"; public $boxlabel = "BoxProductDistribution"; - public $depends = array("product|service", "facture|propal|commande"); + public $depends = array("product|service", "invoice|propal|order"); public $widgettype = 'graph'; diff --git a/htdocs/core/boxes/box_produits.php b/htdocs/core/boxes/box_produits.php index 8bb5b154153..7eceaaa395e 100644 --- a/htdocs/core/boxes/box_produits.php +++ b/htdocs/core/boxes/box_produits.php @@ -37,7 +37,7 @@ class box_produits extends ModeleBoxes public $boxcode = "lastproducts"; public $boximg = "object_product"; public $boxlabel = "BoxLastProducts"; - public $depends = array("produit"); + public $depends = array("product"); /** * Constructor diff --git a/htdocs/core/boxes/box_produits_alerte_stock.php b/htdocs/core/boxes/box_produits_alerte_stock.php index 40faa3b03a3..913ad129903 100644 --- a/htdocs/core/boxes/box_produits_alerte_stock.php +++ b/htdocs/core/boxes/box_produits_alerte_stock.php @@ -39,7 +39,7 @@ class box_produits_alerte_stock extends ModeleBoxes public $boxcode = "productsalertstock"; public $boximg = "object_product"; public $boxlabel = "BoxProductsAlertStock"; - public $depends = array("produit"); + public $depends = array("product"); /** * Constructor diff --git a/htdocs/core/boxes/box_propales.php b/htdocs/core/boxes/box_propales.php index b76e83c82f4..fe2335b330e 100644 --- a/htdocs/core/boxes/box_propales.php +++ b/htdocs/core/boxes/box_propales.php @@ -37,7 +37,7 @@ class box_propales extends ModeleBoxes public $boxcode = "lastpropals"; public $boximg = "object_propal"; public $boxlabel = "BoxLastProposals"; - public $depends = array("propal"); // conf->propal->enabled + public $depends = array("propal"); /** * Constructor diff --git a/htdocs/core/boxes/box_services_contracts.php b/htdocs/core/boxes/box_services_contracts.php index 9993432ccb6..bbabff269ce 100644 --- a/htdocs/core/boxes/box_services_contracts.php +++ b/htdocs/core/boxes/box_services_contracts.php @@ -36,7 +36,7 @@ class box_services_contracts extends ModeleBoxes public $boxcode = "lastproductsincontract"; public $boximg = "object_product"; public $boxlabel = "BoxLastProductsInContract"; - public $depends = array("service", "contrat"); + public $depends = array("service", "contract"); /** * Constructor diff --git a/htdocs/core/boxes/box_services_expired.php b/htdocs/core/boxes/box_services_expired.php index 7b3f8a48251..a59c4ac991b 100644 --- a/htdocs/core/boxes/box_services_expired.php +++ b/htdocs/core/boxes/box_services_expired.php @@ -33,7 +33,7 @@ class box_services_expired extends ModeleBoxes public $boxcode = "expiredservices"; // id of box public $boximg = "object_contract"; public $boxlabel = "BoxOldestExpiredServices"; - public $depends = array("contrat"); // conf->propal->enabled + public $depends = array("contract"); /** * Constructor diff --git a/htdocs/core/boxes/box_task.php b/htdocs/core/boxes/box_task.php index 472f2116d22..e9ef4e3cff1 100644 --- a/htdocs/core/boxes/box_task.php +++ b/htdocs/core/boxes/box_task.php @@ -38,7 +38,7 @@ class box_task extends ModeleBoxes * @var string */ public $boxlabel; - public $depends = array("projet"); + public $depends = array("project"); public $enabled = 1; @@ -50,7 +50,7 @@ class box_task extends ModeleBoxes */ public function __construct($db, $param = '') { - global $conf, $user, $langs; + global $user, $langs; // Load translation files required by the page $langs->loadLangs(array('boxes', 'projects'));