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:
authorThomas Steur <thomas.steur@googlemail.com>2014-05-19 10:25:10 +0400
committerThomas Steur <thomas.steur@googlemail.com>2014-05-19 10:25:10 +0400
commit1de1cdb000d76c2632449fe4b8799270cd6c35a2 (patch)
treed6e8f4ec751ba0c13ae2f287686e0d71bd967fab /core/ViewDataTable
parentb02e74e00f63ef91e06e03ddf39f9cd3ca94cc1a (diff)
refs #1915 "columns" is added as a special query parameter in ViewDataTable class which results in having to do this. Problem: Switching to treemap visualization in eg PageUrls will save a columns "nb_hits" param, loading the normal view and sorting by column will result in only displaying nb_hits column instead of all columns. This seems to be the only case. If there are more we need to let the visualization decide which parameters to reset in case of a visualization change
Diffstat (limited to 'core/ViewDataTable')
-rw-r--r--core/ViewDataTable/Manager.php7
1 files changed, 7 insertions, 0 deletions
diff --git a/core/ViewDataTable/Manager.php b/core/ViewDataTable/Manager.php
index 858b208742..82ffff118d 100644
--- a/core/ViewDataTable/Manager.php
+++ b/core/ViewDataTable/Manager.php
@@ -302,6 +302,13 @@ class Manager
$params = self::getViewDataTableParameters($login, $controllerAction);
foreach ($parametersToOverride as $key => $value) {
+ if ($key === 'viewDataTable'
+ && !empty($params['columns'])
+ && !empty($params[$key])
+ && $params[$key] !== $value) {
+ unset($params['columns']);
+ }
+
$params[$key] = $value;
}