Skip to content

Commit

Permalink
Do not change type of segments in API::listSegments() (#12640)
Browse files Browse the repository at this point in the history
  • Loading branch information
diosmosis authored and mattab committed Mar 23, 2018
1 parent 668ab5a commit 9e4853d
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions plugins/API/Controller.php
Original file line number Diff line number Diff line change
Expand Up @@ -78,12 +78,6 @@ public function listSegments()
$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');
Expand Down

0 comments on commit 9e4853d

Please sign in to comment.