From ee223ff29e3c391c486e5a3df6bef306eb1e75f1 Mon Sep 17 00:00:00 2001 From: Chris Brame Date: Fri, 29 Mar 2019 11:34:13 -0400 Subject: [PATCH] fix(apiv1): invalid response if group was not sent as obj #175 --- src/controllers/api/v1/tickets.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/controllers/api/v1/tickets.js b/src/controllers/api/v1/tickets.js index 0e42e1387..a8452cde7 100644 --- a/src/controllers/api/v1/tickets.js +++ b/src/controllers/api/v1/tickets.js @@ -654,7 +654,7 @@ apiTickets.update = function (req, res) { }, function (cb) { if (!_.isUndefined(reqTicket.group)) { - ticket.group = reqTicket.group._id + ticket.group = reqTicket.group._id || reqTicket.group ticket.populate('group', function () { return cb()