From a834a8609f8fa61dec72398feea119467908352f Mon Sep 17 00:00:00 2001 From: Thomas Steur <tsteur@users.noreply.github.com> Date: Fri, 6 Oct 2017 11:15:43 +1300 Subject: [PATCH] Add quotes around goal conversion rate metric (#12151) * Add quotes around goal conversion rate metric * fix typo --- plugins/Goals/Goals.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/Goals/Goals.php b/plugins/Goals/Goals.php index b1d10e16f3..ecf6fa4ad2 100644 --- a/plugins/Goals/Goals.php +++ b/plugins/Goals/Goals.php @@ -96,7 +96,7 @@ class Goals extends \Piwik\Plugin foreach ($goals as $goal) { $metric = $computedMetricFactory->createComputedMetric('goal_' . $goal['idgoal'] . '_conversion', 'nb_uniq_visitors', ComputedMetric::AGGREGATION_RATE); - $goalName = Piwik::translate('Goals_GoalX', $goal['name']); + $goalName = '"' . Piwik::translate('Goals_GoalX', $goal['name']) . '"'; $metricName = Piwik::translate('Goals_ConversionRate', $goalName); $metric->setTranslatedName($metricName); $list->addMetric($metric); -- GitLab