diff options
author | sgiehl <stefan@piwik.org> | 2016-03-20 21:08:40 +0300 |
---|---|---|
committer | sgiehl <stefan@piwik.org> | 2016-03-20 21:08:40 +0300 |
commit | 8d665858021c853bd00fd14572a9b8ee83b89e45 (patch) | |
tree | 4be2d1ee4d973a91a0de6e6c2f66679c69c9ce8f /plugins | |
parent | 464be65c8e43f70c643cd589ac54da28d12780c2 (diff) |
displayed columns might not be correct when empty pivotBy is given
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/Events/Events.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/Events/Events.php b/plugins/Events/Events.php index e178dc197b..84576c2832 100644 --- a/plugins/Events/Events.php +++ b/plugins/Events/Events.php @@ -143,7 +143,8 @@ class Events extends \Piwik\Plugin $secondaryDimension = $this->getSecondaryDimensionFromRequest(); $view->config->subtable_controller_action = API::getInstance()->getActionToLoadSubtables($apiMethod, $secondaryDimension); - if (Common::getRequestVar('pivotBy', false) === false) { + $pivotBy = Common::getRequestVar('pivotBy', false); + if (empty($pivotBy)) { $view->config->columns_to_display = array('label', 'nb_events', 'sum_event_value'); } |