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>2018-12-26 02:32:05 +0300
committerdiosmosis <diosmosis@users.noreply.github.com>2018-12-26 02:32:05 +0300
commit5f28571535178851fc42f7f9c07655875b7e994f (patch)
tree5e1754745d4a3e21bac3940f2a0f22966f5699f6 /plugins/CoreVisualizations
parent08d623c7ee5b67d779454f179bfacc71a295ab73 (diff)
Do not fetch totals for insights (#13891)
* Do not fetch totals for insights Got this error warning > WARNING: Trying to add two strings in DataTable\Row::sumRowArray: 35.8% + 48.6% for row # ['label' =&gt; -2, 'nb_visits' =&gt; 379, 'growth_percent' =&gt; '35.8%', 'growth_percent_numeric' =&gt; '35.8', 'grown' =&gt; 1, 'value_old' =&gt; 162, 'value_new' =&gt; 220, 'difference' =&gt; 58, 'importance' =&gt; 58, 'isDisappeared' =&gt; , 'isNew' =&gt; , 'isMover' =&gt; 1] [] [idsubtable = ]&lt;br /&gt; * also do not fetch totals for movers and shakers * Update Model.php * by default fetch totals only when html tables are requested * ensure to not fetch totals for any other visualisation but htmltable * update doc
Diffstat (limited to 'plugins/CoreVisualizations')
-rw-r--r--plugins/CoreVisualizations/Visualizations/HtmlTable/Config.php2
-rw-r--r--plugins/CoreVisualizations/Visualizations/HtmlTable/RequestConfig.php1
2 files changed, 2 insertions, 1 deletions
diff --git a/plugins/CoreVisualizations/Visualizations/HtmlTable/Config.php b/plugins/CoreVisualizations/Visualizations/HtmlTable/Config.php
index 266a71e1b4..ba39a66c0f 100644
--- a/plugins/CoreVisualizations/Visualizations/HtmlTable/Config.php
+++ b/plugins/CoreVisualizations/Visualizations/HtmlTable/Config.php
@@ -88,7 +88,7 @@ class Config extends VisualizationConfig
public $highlight_summary_row = false;
/**
- * If true, the totals row will be hidden
+ * If true, the totals row will be shown
*
* Default value: false
*/
diff --git a/plugins/CoreVisualizations/Visualizations/HtmlTable/RequestConfig.php b/plugins/CoreVisualizations/Visualizations/HtmlTable/RequestConfig.php
index 696569c618..dde538219c 100644
--- a/plugins/CoreVisualizations/Visualizations/HtmlTable/RequestConfig.php
+++ b/plugins/CoreVisualizations/Visualizations/HtmlTable/RequestConfig.php
@@ -38,6 +38,7 @@ class RequestConfig extends VisualizationRequestConfig
public function __construct()
{
+ $this->totals = true;
$this->filter_limit = PiwikConfig::getInstance()->General['datatable_default_limit'];
if (Common::getRequestVar('enable_filter_excludelowpop', false) == '1') {