From c7b03da7e620a0b2c258ba1d44561ba380946fe2 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Fri, 25 Jun 2021 23:43:22 +0200 Subject: [PATCH] Fix bad object used --- htdocs/core/boxes/box_graph_product_distribution.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/htdocs/core/boxes/box_graph_product_distribution.php b/htdocs/core/boxes/box_graph_product_distribution.php index dd85c3e1fcd..5110b929a2e 100644 --- a/htdocs/core/boxes/box_graph_product_distribution.php +++ b/htdocs/core/boxes/box_graph_product_distribution.php @@ -193,7 +193,7 @@ class box_graph_product_distribution extends ModeleBoxes $px2->SetLegend($legend); $px2->setShowLegend(2); if (!empty($conf->dol_optimize_smallscreen)) { - $px1->SetWidth(320); + $px2->SetWidth(320); } $px2->setShowPointValue($showpointvalue); $px2->setShowPercent(0); @@ -256,7 +256,7 @@ class box_graph_product_distribution extends ModeleBoxes $px3->SetLegend($legend); $px3->setShowLegend(2); if (!empty($conf->dol_optimize_smallscreen)) { - $px1->SetWidth(320); + $px3->SetWidth(320); } $px3->setShowPointValue($showpointvalue); $px3->setShowPercent(0);