From 9b1d0b1c50455fc6b7928718d71c052957a00598 Mon Sep 17 00:00:00 2001 From: Thomas Steur Date: Wed, 3 Sep 2014 09:41:50 +0200 Subject: refs #4996 make sure processed metrics will be translated automatically and a user does not have to add them manually to the viewDataTable --- core/Plugin/ViewDataTable.php | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'core') diff --git a/core/Plugin/ViewDataTable.php b/core/Plugin/ViewDataTable.php index 14b2f979f7..d7f72028cf 100644 --- a/core/Plugin/ViewDataTable.php +++ b/core/Plugin/ViewDataTable.php @@ -223,6 +223,11 @@ abstract class ViewDataTable implements ViewInterface $this->config->addTranslations($metrics); } + $processedMetrics = $report->getProcessedMetrics(); + if (!empty($processedMetrics)) { + $this->config->addTranslations($processedMetrics); + } + $report->configureView($this); } -- cgit v1.2.3