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 'plugins/Insights/InsightReport.php')
-rw-r--r--plugins/Insights/InsightReport.php7
1 files changed, 6 insertions, 1 deletions
diff --git a/plugins/Insights/InsightReport.php b/plugins/Insights/InsightReport.php
index e7937a4f55..5310ff1185 100644
--- a/plugins/Insights/InsightReport.php
+++ b/plugins/Insights/InsightReport.php
@@ -218,9 +218,14 @@ class InsightReport
)
);
+ $metricName = $metric;
+ if (!empty($reportMetadata['metrics'][$metric])) {
+ $metricName = $reportMetadata['metrics'][$metric];
+ }
+
$dataTable->setMetadataValues(array(
'reportName' => $reportMetadata['name'],
- 'metricName' => $reportMetadata['metrics'][$metric],
+ 'metricName' => $metricName,
'date' => $date,
'lastDate' => $lastDate,
'period' => $period,