diff options
author | diosmosis <benaka@piwik.pro> | 2014-09-21 03:01:54 +0400 |
---|---|---|
committer | diosmosis <benaka@piwik.pro> | 2014-09-21 03:02:41 +0400 |
commit | fcbb47d7934427b7b9e0d8d1f93a96bf699c9ec8 (patch) | |
tree | 9426ad2a25d3568d957e87b9588d986b4541f70c /core/Plugin/Visualization.php | |
parent | 89ce428063338b24cf229f44c7a716abfeae1674 (diff) |
Refs #6078, make sure pivot option does not display if table is not pivotted and has no subtables (eg, when flattened).
Diffstat (limited to 'core/Plugin/Visualization.php')
-rw-r--r-- | core/Plugin/Visualization.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/core/Plugin/Visualization.php b/core/Plugin/Visualization.php index e369dfa05a..31d9c58980 100644 --- a/core/Plugin/Visualization.php +++ b/core/Plugin/Visualization.php @@ -297,6 +297,11 @@ class Visualization extends ViewDataTable $this->config->report_last_updated_message = $this->makePrettyArchivedOnText(); } } + + $pivotBy = Common::getRequestVar('pivotBy', false) ?: $this->requestConfig->pivotBy; + if (empty($pivotBy)) { + $this->config->disablePivotBySubtableIfTableHasNoSubtables($this->dataTable); + } } private function applyFilters() |