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 <tsteur@users.noreply.github.com>2015-03-09 06:41:34 +0300
committerThomas Steur <tsteur@users.noreply.github.com>2015-03-09 06:41:34 +0300
commitefef7e0406a2011e671cbc8dee6714fc76562784 (patch)
treee6f703fc527e0c7a27d6dd83a3ff527e30319a82 /plugins
parentd21fcf2e168afa8b25783e0506fa7a5401eb2849 (diff)
added a comment in case it is not clear why we remove one of the two htmlTables
Diffstat (limited to 'plugins')
-rw-r--r--plugins/CoreVisualizations/CoreVisualizations.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/plugins/CoreVisualizations/CoreVisualizations.php b/plugins/CoreVisualizations/CoreVisualizations.php
index 97311475ac..da8fbe9f94 100644
--- a/plugins/CoreVisualizations/CoreVisualizations.php
+++ b/plugins/CoreVisualizations/CoreVisualizations.php
@@ -41,6 +41,8 @@ class CoreVisualizations extends \Piwik\Plugin
public function addViewDataTable(&$viewDataTable)
{
+ // Both are the same HtmlTable, just the Pivot one has some extra logic in case Pivot is used.
+ // We don't want to use the same HtmlTable twice in the UI. Therefore we always need to remove one.
if (Common::getRequestVar('pivotBy', '')) {
$tableToRemove = 'Visualizations\HtmlTable';
} else {