diff options
Diffstat (limited to 'plugins/CoreHome/DataTableRowAction/MultiRowEvolution.php')
-rw-r--r-- | plugins/CoreHome/DataTableRowAction/MultiRowEvolution.php | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/plugins/CoreHome/DataTableRowAction/MultiRowEvolution.php b/plugins/CoreHome/DataTableRowAction/MultiRowEvolution.php index f708515ebf..38fd48fa24 100644 --- a/plugins/CoreHome/DataTableRowAction/MultiRowEvolution.php +++ b/plugins/CoreHome/DataTableRowAction/MultiRowEvolution.php @@ -9,6 +9,7 @@ namespace Piwik\Plugins\CoreHome\DataTableRowAction; use Piwik\Common; +use Piwik\Context; use Piwik\Piwik; /** @@ -68,4 +69,28 @@ class MultiRowEvolution extends RowEvolution return parent::renderPopover($controller, $view); } + + protected function getRowEvolutionGraphFromController(\Piwik\Plugins\CoreHome\Controller $controller) + { + // the row evolution graphs should not compare serieses + return Context::executeWithQueryParameters(['compareSegments' => [], 'comparePeriods' => [], 'compareDates' => []], function () use ($controller) { + return parent::getRowEvolutionGraphFromController($controller); + }); + } + + public function getRowEvolutionGraph($graphType = false, $metrics = false) + { + // the row evolution graphs should not compare serieses + return Context::executeWithQueryParameters(['compareSegments' => [], 'comparePeriods' => [], 'compareDates' => []], function () use ($graphType, $metrics) { + return parent::getRowEvolutionGraph($graphType, $metrics); + }); + } + + protected function getSparkline($metric) + { + // the row evolution graphs should not compare serieses + return Context::executeWithQueryParameters(['compareSegments' => [], 'comparePeriods' => [], 'compareDates' => []], function () use ($metric) { + return parent::getSparkline($metric); + }); + } } |