From 0bbf8eb60be3e205d7c230e430ebd7765ef38526 Mon Sep 17 00:00:00 2001 From: Thomas Steur Date: Wed, 18 Nov 2015 02:25:52 +0000 Subject: show union segments in a title if given --- plugins/SegmentEditor/lang/en.json | 3 ++- .../SegmentEditor/templates/_segmentSelector.twig | 12 +++++++++- ...iGetReportMetadata__API.getSegmentsMetadata.xml | 28 ++++++++++++++++++++++ 3 files changed, 41 insertions(+), 2 deletions(-) diff --git a/plugins/SegmentEditor/lang/en.json b/plugins/SegmentEditor/lang/en.json index 46bdf5fef2..933ac73884 100644 --- a/plugins/SegmentEditor/lang/en.json +++ b/plugins/SegmentEditor/lang/en.json @@ -26,6 +26,7 @@ "YouMayChangeSetting": "Alternatively you may change the setting in the config file (%s), or edit this Segment and choose '%s'.", "YouMustBeLoggedInToCreateSegments": "You must be logged in to create and edit custom visitor segments.", "YouDontHaveAccessToCreateSegments": "You don't have the required access level to create and edit segments.", - "AddingSegmentForAllWebsitesDisabled": "Adding segments for all websites has been disabled." + "AddingSegmentForAllWebsitesDisabled": "Adding segments for all websites has been disabled.", + "SegmentXIsAUnionOf": "%s is a union of these segments:" } } \ No newline at end of file diff --git a/plugins/SegmentEditor/templates/_segmentSelector.twig b/plugins/SegmentEditor/templates/_segmentSelector.twig index 7a8019d37e..1ffb4b3d47 100644 --- a/plugins/SegmentEditor/templates/_segmentSelector.twig +++ b/plugins/SegmentEditor/templates/_segmentSelector.twig @@ -99,7 +99,17 @@ {{ category }} diff --git a/tests/PHPUnit/System/expected/test_apiGetReportMetadata__API.getSegmentsMetadata.xml b/tests/PHPUnit/System/expected/test_apiGetReportMetadata__API.getSegmentsMetadata.xml index 017837d9a8..e2c3f30c00 100644 --- a/tests/PHPUnit/System/expected/test_apiGetReportMetadata__API.getSegmentsMetadata.xml +++ b/tests/PHPUnit/System/expected/test_apiGetReportMetadata__API.getSegmentsMetadata.xml @@ -274,6 +274,13 @@ Custom Variables Custom Variable name (scope visit) customVariableName + + customVariableName1 + customVariableName2 + customVariableName3 + customVariableName4 + customVariableName5 + dimension @@ -310,6 +317,13 @@ Custom Variables Custom Variable name (scope page) customVariablePageName + + customVariablePageName1 + customVariablePageName2 + customVariablePageName3 + customVariablePageName4 + customVariablePageName5 + dimension @@ -346,6 +360,13 @@ Custom Variables Custom Variable value (scope page) customVariablePageValue + + customVariablePageValue1 + customVariablePageValue2 + customVariablePageValue3 + customVariablePageValue4 + customVariablePageValue5 + dimension @@ -382,6 +403,13 @@ Custom Variables Custom Variable value (scope visit) customVariableValue + + customVariableValue1 + customVariableValue2 + customVariableValue3 + customVariableValue4 + customVariableValue5 + dimension -- cgit v1.2.3