diff options
author | dizzy <diosmosis@users.noreply.github.com> | 2022-01-07 14:04:25 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-07 14:04:25 +0300 |
commit | 57cd4a4a8b078a414fb9304eb8bfadd3ff40bef5 (patch) | |
tree | 263e89e879a55f9be3639c1666eafd095c2b35da /plugins/SegmentEditor/javascripts/Segmentation.js | |
parent | c13f6f461dca1523b5756c7ce0a6369a2d828bd1 (diff) |
remove compareDates with comparePeriods when adding new segment (#18535)
Diffstat (limited to 'plugins/SegmentEditor/javascripts/Segmentation.js')
-rw-r--r-- | plugins/SegmentEditor/javascripts/Segmentation.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/SegmentEditor/javascripts/Segmentation.js b/plugins/SegmentEditor/javascripts/Segmentation.js index 483c05a251..f94a0453e6 100644 --- a/plugins/SegmentEditor/javascripts/Segmentation.js +++ b/plugins/SegmentEditor/javascripts/Segmentation.js @@ -919,10 +919,10 @@ $(document).ready(function() { segmentDefinition = this.uriEncodeSegmentDefinition(segmentDefinition); if (piwikHelper.isAngularRenderingThePage()) { - return broadcast.propagateNewPage('', true, 'addSegmentAsNew=&segment=' + segmentDefinition, ['compareSegments', 'comparePeriods']); + return broadcast.propagateNewPage('', true, 'addSegmentAsNew=&segment=' + segmentDefinition, ['compareSegments', 'comparePeriods', 'compareDates']); } else { // eg in case of exported dashboard - return broadcast.propagateNewPage('segment=' + segmentDefinition, true, 'addSegmentAsNew=&segment=' + segmentDefinition, ['compareSegments', 'comparePeriods']); + return broadcast.propagateNewPage('segment=' + segmentDefinition, true, 'addSegmentAsNew=&segment=' + segmentDefinition, ['compareSegments', 'comparePeriods', 'compareDates']); } }; |