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:
authorsgiehl <stefan@piwik.org>2016-03-20 21:08:40 +0300
committersgiehl <stefan@piwik.org>2016-03-20 21:08:40 +0300
commit8d665858021c853bd00fd14572a9b8ee83b89e45 (patch)
tree4be2d1ee4d973a91a0de6e6c2f66679c69c9ce8f
parent464be65c8e43f70c643cd589ac54da28d12780c2 (diff)
displayed columns might not be correct when empty pivotBy is given
-rw-r--r--plugins/Events/Events.php3
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');
}