From b38aa57894cc5744afab87ecc26e5a60dd68cde8 Mon Sep 17 00:00:00 2001 From: Gerard Date: Mon, 11 Feb 2019 09:02:09 +0100 Subject: [PATCH] order line not redirecting correctly to ticket index fixed --- modules/order/front/line/index.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/order/front/line/index.js b/modules/order/front/line/index.js index 84067b5ec..a3e9f77ad 100644 --- a/modules/order/front/line/index.js +++ b/modules/order/front/line/index.js @@ -70,6 +70,7 @@ class Controller { this.$http.post(query, params).then(() => { this.vnApp.showSuccess(this.$translate.instant('Data saved!')); }); + this.$scope.watcher.updateOriginalData(); this.getVAT(); this.card.reload(); } @@ -92,7 +93,7 @@ class Controller { this.$http.post(query).then(() => { this.vnApp.showSuccess(this.$translate.instant('Order confirmed')); - this.$state.go(`ticket.index`, {clientFk: this.order.clientFk}); + this.$state.go(`ticket.index`, {q: JSON.stringify({clientFk: this.order.clientFk})}); }); } }