From c4ca358e25c30f9ee6f0de8d22c8ae90aaedf224 Mon Sep 17 00:00:00 2001 From: ldestailleur Date: Wed, 13 Aug 2025 23:36:17 +0200 Subject: [PATCH] Debug v23 --- htdocs/core/boxes/box_funnel_of_prospection.php | 3 ++- htdocs/core/class/dolgraph.class.php | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/htdocs/core/boxes/box_funnel_of_prospection.php b/htdocs/core/boxes/box_funnel_of_prospection.php index cd185ea340d..407dd35b482 100644 --- a/htdocs/core/boxes/box_funnel_of_prospection.php +++ b/htdocs/core/boxes/box_funnel_of_prospection.php @@ -268,7 +268,7 @@ class box_funnel_of_prospection extends ModeleBoxes $dolgraph->SetMinValue(0); $dolgraph->SetData($dataseries); $dolgraph->SetLegend($liststatus); - $dolgraph->setHideXValues(true); + $dolgraph->setHideXValues(false); $dolgraph->setHideYValues(true); $dolgraph->SetDataColor(array_values($colorseriesstat)); $dolgraph->setShowLegend(2); @@ -286,6 +286,7 @@ class box_funnel_of_prospection extends ModeleBoxes $dolgraph->setTooltipsLabels($customlabels); $dolgraph->mode = 'depth'; $dolgraph->draw('idgraphleadfunnel'); + $stringtoprint .= $dolgraph->show($totaloppnb ? 0 : 1); } $stringtoprint .= ''; diff --git a/htdocs/core/class/dolgraph.class.php b/htdocs/core/class/dolgraph.class.php index c0d3cb15adc..b8866064d59 100644 --- a/htdocs/core/class/dolgraph.class.php +++ b/htdocs/core/class/dolgraph.class.php @@ -1488,7 +1488,7 @@ class DolGraph if ($this->hideXValues) { $this->stringtoshow .= 'x: { display: false }'; } - if ($this->hideYValues || $this->hideXValues) { + if ($this->hideYValues && $this->hideXValues) { $this->stringtoshow .= ', '; } if ($this->hideYValues) {