diff --git a/modules/travel/front/extra-community-search-panel/index.html b/modules/travel/front/extra-community-search-panel/index.html
index 73c158a03..9fecfc192 100644
--- a/modules/travel/front/extra-community-search-panel/index.html
+++ b/modules/travel/front/extra-community-search-panel/index.html
@@ -39,28 +39,25 @@
+ ng-model="$ctrl.shippedFrom">
+ label="Landed from"
+ ng-model="$ctrl.landedFrom">
+
+ label="Shipped to"
+ ng-model="$ctrl.shippedTo">
+ ng-model="$ctrl.landedTo">
diff --git a/modules/travel/front/extra-community-search-panel/index.js b/modules/travel/front/extra-community-search-panel/index.js
index f2e4b66d9..4e50ea787 100644
--- a/modules/travel/front/extra-community-search-panel/index.js
+++ b/modules/travel/front/extra-community-search-panel/index.js
@@ -9,47 +9,47 @@ class Controller extends SearchPanel {
}
get shippedFrom() {
- return this._shippedFrom;
+ return this.filter.shippedFrom;
}
set shippedFrom(value) {
- this._shippedFrom = value;
+ this.filter.shippedFrom = value;
- if (!this.filter.shippedTo)
- this.filter.shippedTo = value;
+ if (!this.filter.landedFrom)
+ this.filter.landedFrom = value;
}
get shippedTo() {
- return this._shippedTo;
+ return this.filter.shippedTo;
}
set shippedTo(value) {
- this._shippedTo = value;
-
- if (!this.filter.shippedFrom)
- this.filter.shippedFrom = value;
- }
-
- get landedFrom() {
- return this._landedFrom;
- }
-
- set landedFrom(value) {
- this._landedFrom = value;
+ this.filter.shippedTo = value;
if (!this.filter.landedTo)
this.filter.landedTo = value;
}
+ get landedFrom() {
+ return this.filter.landedFrom;
+ }
+
+ set landedFrom(value) {
+ this.filter.landedFrom = value;
+
+ if (!this.filter.shippedFrom)
+ this.filter.shippedFrom = value;
+ }
+
get landedTo() {
- return this._landedTo;
+ return this.filter.landedTo;
}
set landedTo(value) {
- this._landedTo = value;
+ this.filter.landedTo = value;
- if (!this.filter.landedFrom)
- this.filter.landedFrom = value;
+ if (!this.filter.shippedTo)
+ this.filter.shippedTo = value;
}
}