diff options
author | diosmosis <benaka@piwik.pro> | 2014-09-20 00:56:14 +0400 |
---|---|---|
committer | diosmosis <benaka@piwik.pro> | 2014-09-20 00:56:14 +0400 |
commit | eab821030f3d93181de0c81555dda2a89cedac7a (patch) | |
tree | bde4b19f51d83637d0152ff2940764379ea5d7c4 /plugins/Events/Events.php | |
parent | a318e24f45d158e907085912bf9815d30ec3680e (diff) |
Refs #6078, add report metadata for Event subtable reports and make sure pivotBy works w/ Events plugins' secondaryDimension query parameter..
Diffstat (limited to 'plugins/Events/Events.php')
-rw-r--r-- | plugins/Events/Events.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/plugins/Events/Events.php b/plugins/Events/Events.php index af701bdf37..ad4dab646f 100644 --- a/plugins/Events/Events.php +++ b/plugins/Events/Events.php @@ -10,6 +10,7 @@ namespace Piwik\Plugins\Events; use Piwik\Common; use Piwik\Piwik; +use Piwik\Plugin\Report; use Piwik\Plugin\ViewDataTable; class Events extends \Piwik\Plugin @@ -171,6 +172,9 @@ class Events extends \Piwik\Plugin $view->config->addTranslations($this->getMetricTranslations()); $this->addRelatedReports($view, $secondaryDimension); $this->addTooltipEventValue($view); + + $subtableReport = Report::factory('Events', $view->config->subtable_controller_action); + $view->config->pivot_by_dimension = $subtableReport->getDimension()->getId(); } private function addRelatedReports($view, $secondaryDimension) |