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:
authorKate Butler <kate@innocraft.com>2019-02-27 00:33:42 +0300
committerThomas Steur <tsteur@users.noreply.github.com>2019-02-27 00:33:42 +0300
commitba1068099b19ede7e2ca85f42ef5fe55165a2837 (patch)
treec278af38212cb7c982f6f48ee273ca6e3b619043 /plugins/SegmentEditor/javascripts/Segmentation.js
parent16edd06479324eb4c7c65a946187ee97b74fba1e (diff)
Fix undefined error in segmentation.js (#14142)
Diffstat (limited to 'plugins/SegmentEditor/javascripts/Segmentation.js')
-rw-r--r--plugins/SegmentEditor/javascripts/Segmentation.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/SegmentEditor/javascripts/Segmentation.js b/plugins/SegmentEditor/javascripts/Segmentation.js
index 33606d5d8a..1b8a11e34c 100644
--- a/plugins/SegmentEditor/javascripts/Segmentation.js
+++ b/plugins/SegmentEditor/javascripts/Segmentation.js
@@ -595,7 +595,7 @@ Segmentation = (function($) {
$(self.form).find('.auto_archive_select > option[value="'+segment.auto_archive+'"]').prop("selected",true);
}
- if (segment.definition != ""){
+ if (segment !== undefined && segment.definition != ""){
self.form.find('[piwik-segment-generator]').attr('segment-definition', segment.definition);
}