diff options
author | Stefan Giehl <stefan@matomo.org> | 2022-11-09 00:51:36 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-09 00:51:36 +0300 |
commit | 1ee16ac6bee1e347e3dd0b15b8651448168bc6ff (patch) | |
tree | 0eee2afb6aed0292203d10698dfbad6f8a3e5ba7 /plugins/CoreVisualizations | |
parent | 3ddbb186ef564718ed0a4457e56d287c0c0f6708 (diff) |
Provide correct date parameter for comparison sparklines (#19971)
Diffstat (limited to 'plugins/CoreVisualizations')
-rw-r--r-- | plugins/CoreVisualizations/Visualizations/Sparklines.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/CoreVisualizations/Visualizations/Sparklines.php b/plugins/CoreVisualizations/Visualizations/Sparklines.php index 402d92d322..6ed99cea4f 100644 --- a/plugins/CoreVisualizations/Visualizations/Sparklines.php +++ b/plugins/CoreVisualizations/Visualizations/Sparklines.php @@ -283,7 +283,7 @@ class Sparklines extends ViewDataTable $params = array_merge($sparklineUrlParams, [ 'segment' => $segment, 'period' => $periodObj->getLabel(), - 'date' => $periodObj->getRangeString(), + 'date' => $periodObj->getLabel() === 'range' ? $periodObj->getRangeString() : $periodObj->getDateEnd(), ]); $this->config->addSparkline($params, $metrics, $desc = null, null, ($order * 100) + $segmentIndex, $title, $sparklineMetricIndex, $seriesIndices, $graphParams); } |