From c987d42eaf1bcf3c0fc86beca5a45d930ffa1e00 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Brunner?= Date: Thu, 29 Nov 2018 12:00:01 +0100 Subject: [PATCH] Fix min max dates syncronisation on filters --- src/filter/ruleComponent.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/filter/ruleComponent.js b/src/filter/ruleComponent.js index 16384ec783a1..7eb5c0fcbb3c 100644 --- a/src/filter/ruleComponent.js +++ b/src/filter/ruleComponent.js @@ -424,21 +424,21 @@ exports.RuleController_ = class { this.unlisteners_.push(this.scope_.$watch( () => this.clone.getExpression(), (newVal) => { - this.timeValueMode.minValue = newVal; + this.timeValueMode.minDefValue = newVal || this.createDate_(); } )); // Watch 'lowerBoundary' this.unlisteners_.push(this.scope_.$watch( () => this.clone.lowerBoundary, (newVal) => { - this.timeRangeMode.minValue = newVal; + this.timeRangeMode.minDefValue = newVal || this.createWeekAgoDate_(); } )); // Watch 'upperBoundary' this.unlisteners_.push(this.scope_.$watch( () => this.clone.upperBoundary, (newVal) => { - this.timeRangeMode.maxValue = newVal; + this.timeRangeMode.maxDefValue = newVal || this.createDate_(); } )); } else if (this.clone.type === ngeoFormatAttributeType.GEOMETRY) {