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';