From 4a815988837815dd835650c654af639a23ffedb4 Mon Sep 17 00:00:00 2001 From: Javier Segarra Date: Tue, 27 Aug 2024 10:27:43 +0200 Subject: [PATCH] fix: ticketDescriptorMenu --- src/pages/Ticket/Card/TicketDescriptorMenu.vue | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/pages/Ticket/Card/TicketDescriptorMenu.vue b/src/pages/Ticket/Card/TicketDescriptorMenu.vue index c7784bc2a..d5a578ca7 100644 --- a/src/pages/Ticket/Card/TicketDescriptorMenu.vue +++ b/src/pages/Ticket/Card/TicketDescriptorMenu.vue @@ -30,10 +30,13 @@ const actions = { let clonedTicketId; try { - const { data } = await axios.post(`Tickets/${ticketId}/clone`, { + const { data } = await axios.post(`Tickets/cloneAll`, { shipped: ticket.value.shipped, + ticketsIds: [ticket.value.id], + withWarehouse: true, + negative: false, }); - clonedTicketId = data; + clonedTicketId = data[0].id; } catch (e) { opts.message = t('It was not able to clone the ticket'); opts.type = 'negative';