From 8d665858021c853bd00fd14572a9b8ee83b89e45 Mon Sep 17 00:00:00 2001 From: sgiehl Date: Sun, 20 Mar 2016 19:08:40 +0100 Subject: displayed columns might not be correct when empty pivotBy is given --- plugins/Events/Events.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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'); } -- cgit v1.2.3