Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Giehl <stefan@matomo.org>2021-01-01 08:04:05 +0300
committerGitHub <noreply@github.com>2021-01-01 08:04:05 +0300
commit8886c9065cf11d5ac0628a300d9c55fb1e154853 (patch)
treef768318c888792202b3b4d284194ab5faa22dd19 /plugins/PagePerformance
parentdb5e994861c4149e655c5b3190bee417bdf835ee (diff)
Fix handling of range periods in page performance overlay (#17006)
Diffstat (limited to 'plugins/PagePerformance')
-rw-r--r--plugins/PagePerformance/Controller.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/plugins/PagePerformance/Controller.php b/plugins/PagePerformance/Controller.php
index 7e087b7eed..e7872b0c27 100644
--- a/plugins/PagePerformance/Controller.php
+++ b/plugins/PagePerformance/Controller.php
@@ -47,14 +47,15 @@ class Controller extends PluginController
{
$apiMethod = Common::getRequestVar('apiMethod');
$period = Common::getRequestVar('period');
+ $date = Common::getRequestVar('date');
$params = [
'method' => $apiMethod,
- 'period' => $period,
+ 'period' => 'range' === $period ? 'day' : $period,
'label' => Common::getRequestVar('label', ''),
'idSite' => $this->idSite,
'segment' => Common::getRequestVar('segment', ''),
- 'date' => 'range' === $period ? $this->strDate : EvolutionViz::getDateRangeAndLastN($period, $this->strDate)[0],
+ 'date' => 'range' === $period ? $date : EvolutionViz::getDateRangeAndLastN($period, $date)[0],
'format' => 'original',
'serialize' => '0',
];