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:
authorBenaka <diosmosis@users.noreply.github.com>2018-03-23 06:50:45 +0300
committerMatthieu Aubry <mattab@users.noreply.github.com>2018-03-23 06:50:45 +0300
commit9e4853d70b87fcdd0965d1cbde65491514b88dc9 (patch)
treeda7b97ee125ba87204ead893afa7b090220fdd9c /plugins/API
parent668ab5a92441e3c228a9641e2af3e85250e57af3 (diff)
Do not change type of segments in API::listSegments() (#12640)
Diffstat (limited to 'plugins/API')
-rw-r--r--plugins/API/Controller.php6
1 files changed, 0 insertions, 6 deletions
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');