diff --git a/loopback/locale/en.json b/loopback/locale/en.json index 599febc48..447288077 100644 --- a/loopback/locale/en.json +++ b/loopback/locale/en.json @@ -121,5 +121,6 @@ "Deny buy request": "Purchase request for ticket id [{{ticketId}}]({{{url}}}) has been rejected. Reason: {{observation}}", "The type of business must be filled in basic data": "The type of business must be filled in basic data", "The worker has hours recorded that day": "The worker has hours recorded that day", - "isWithoutNegatives": "isWithoutNegatives" + "isWithoutNegatives": "isWithoutNegatives", + "routeFk": "routeFk" } \ No newline at end of file diff --git a/modules/ticket/back/methods/ticket/componentUpdate.js b/modules/ticket/back/methods/ticket/componentUpdate.js index d9fe259ea..6b385992c 100644 --- a/modules/ticket/back/methods/ticket/componentUpdate.js +++ b/modules/ticket/back/methods/ticket/componentUpdate.js @@ -158,7 +158,8 @@ module.exports = Self => { 'companyFk', 'shipped', 'landed', - 'isDeleted' + 'isDeleted', + 'routeFk' ], include: [ { @@ -169,6 +170,7 @@ module.exports = Self => { }] }, myOptions); + args.routeFk = null; const updatedTicket = Object.assign({}, args); delete updatedTicket.ctx; delete updatedTicket.option;