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:
authordiosmosis <diosmosis@users.noreply.github.com>2018-12-14 02:44:50 +0300
committerGitHub <noreply@github.com>2018-12-14 02:44:50 +0300
commita860a9b7e8dcbb1489d7ed017c31c35c937fb234 (patch)
treeea6530b18f923d38ad0f74f3dcba909fc8711162
parent3a655d1d6c393f5880f5f3de26ac39e317f15419 (diff)
If totals row already exists, do not recalculate in ReportTotalsCalculator. (#13853)
-rw-r--r--core/API/DataTableManipulator/ReportTotalsCalculator.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/core/API/DataTableManipulator/ReportTotalsCalculator.php b/core/API/DataTableManipulator/ReportTotalsCalculator.php
index dd6076834c..0067d87d40 100644
--- a/core/API/DataTableManipulator/ReportTotalsCalculator.php
+++ b/core/API/DataTableManipulator/ReportTotalsCalculator.php
@@ -86,7 +86,9 @@ class ReportTotalsCalculator extends DataTableManipulator
$firstLevelTable = $this->makeSureToWorkOnFirstLevelDataTable($dataTable);
- if (!$firstLevelTable->getRowsCount()) {
+ if (!$firstLevelTable->getRowsCount()
+ || $firstLevelTable->getTotalsRow()
+ ) {
return $dataTable;
}