From 9e4853d70b87fcdd0965d1cbde65491514b88dc9 Mon Sep 17 00:00:00 2001 From: Benaka Date: Thu, 22 Mar 2018 20:50:45 -0700 Subject: Do not change type of segments in API::listSegments() (#12640) --- plugins/API/Controller.php | 6 ------ 1 file changed, 6 deletions(-) (limited to 'plugins/API') diff --git a/plugins/API/Controller.php b/plugins/API/Controller.php index 50f149347e..8b5630ea7d 100644 --- a/plugins/API/Controller.php +++ b/plugins/API/Controller.php @@ -78,12 +78,6 @@ class Controller extends \Piwik\Plugin\Controller $customVariables = 0; $lastCategory = array(); foreach ($segments as $segment) { - // Eg. Event Value is a metric, not in the Visit metric category, - // we make sure it is displayed along with the Events dimensions - if ($segment['type'] == 'metric' && $segment['category'] != Piwik::translate('General_Visit')) { - $segment['type'] = 'dimension'; - } - $onlyDisplay = array('customVariableName1', 'customVariableName2', 'customVariableValue1', 'customVariableValue2', 'customVariablePageName1', 'customVariablePageValue1'); -- cgit v1.2.3