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:
authordizzy <diosmosis@users.noreply.github.com>2022-01-07 14:04:25 +0300
committerGitHub <noreply@github.com>2022-01-07 14:04:25 +0300
commit57cd4a4a8b078a414fb9304eb8bfadd3ff40bef5 (patch)
tree263e89e879a55f9be3639c1666eafd095c2b35da
parentc13f6f461dca1523b5756c7ce0a6369a2d828bd1 (diff)
remove compareDates with comparePeriods when adding new segment (#18535)
-rw-r--r--plugins/SegmentEditor/javascripts/Segmentation.js4
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']);
}
};