diff options
Diffstat (limited to 'core/API')
-rw-r--r-- | core/API/DataTableManipulator/ReportTotalsCalculator.php | 7 |
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) { |