Add call_hook for rabbitmq plugin
This commit is contained in:
parent
06918f9a77
commit
fbd860a4ad
@ -81,6 +81,7 @@ class HelpdeskTicketsController < HelpdeskBaseController
|
||||
@issue.save_attachments(params[:helpdesk_ticket][:attachments] || (params[:helpdesk_ticket][:issue] && params[:helpdesk_ticket][:uploads]))
|
||||
|
||||
if @issue.save
|
||||
call_hook(:controller_ticket_new_after_save, {:params => params, :issue => @issue})
|
||||
process_helpdesk_send_as(params[:helpdesk_ticket][:send_as])
|
||||
HelpdeskTicket.autoclose(@project)
|
||||
return render_api_view(action: :create, status: :created)
|
||||
|
Loading…
Reference in New Issue
Block a user