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:
Diffstat (limited to 'core/API/DataTableManipulator/ReportTotalsCalculator.php')
-rw-r--r--core/API/DataTableManipulator/ReportTotalsCalculator.php7
1 files changed, 7 insertions, 0 deletions
diff --git a/core/API/DataTableManipulator/ReportTotalsCalculator.php b/core/API/DataTableManipulator/ReportTotalsCalculator.php
index e1e467d0c1..a69efce7a8 100644
--- a/core/API/DataTableManipulator/ReportTotalsCalculator.php
+++ b/core/API/DataTableManipulator/ReportTotalsCalculator.php
@@ -92,6 +92,13 @@ class ReportTotalsCalculator extends DataTableManipulator
$metricNames[$metricId] = Metrics::getReadableColumnName($metricId);
}
+ if (!empty($this->report)) {
+ $reportMetrics = $this->report->getMetricNamesToProcessReportTotals();
+ foreach ($reportMetrics as $metricId => $metricName) {
+ $metricNames[$metricId] = $metricName;
+ }
+ }
+
foreach ($firstLevelTable->getRows() as $row) {
$columns = $row->getColumns();
foreach ($metricNames as $metricId => $metricName) {