Skip to content

Commit

Permalink
fix(tickets): public ticket crash #103
Browse files Browse the repository at this point in the history
  • Loading branch information
polonel committed Nov 1, 2018
1 parent 7d71135 commit 19b75f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/controllers/api/v1/tickets.js
Original file line number Diff line number Diff line change
Expand Up @@ -441,7 +441,7 @@ apiTickets.createPublicTicket = function(req, res) {
owner: savedUser._id,
group: group._id,
type: ticketType._id,
priority: 1,
priority: _.first(ticketType.priorities)._id, //TODO: change when priority order is complete!
subject: postData.ticket.subject,
issue: postData.ticket.issue,
history: [HistoryItem],
Expand Down

0 comments on commit 19b75f1

Please sign in to comment.