From 5851784e4147ad3a2410940ce47e2e10cb8c7c61 Mon Sep 17 00:00:00 2001 From: Joan Sanchez Date: Tue, 24 Sep 2019 11:35:46 +0200 Subject: [PATCH] Create new order now opens on new window --- modules/ticket/front/sale/index.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/modules/ticket/front/sale/index.js b/modules/ticket/front/sale/index.js index f262a5211..c783a321e 100644 --- a/modules/ticket/front/sale/index.js +++ b/modules/ticket/front/sale/index.js @@ -401,10 +401,9 @@ class Controller { newOrderFromTicket() { this.$http.post(`/api/Orders/newFromTicket`, {ticketFk: this.ticket.id}).then(res => { - const path = $state.href('order.card.catalog', {id: res.data}); + const path = this.$state.href('order.card.catalog', {id: res.data}); window.open(path, '_blank'); - // this.$state.go('order.card.catalog', {id: res.data}); this.vnApp.showSuccess(this.$translate.instant('Order created')); }); }