Add call_hook for rabbitmq plugin

This commit is contained in:
Alexandr Antonov 2023-05-23 16:34:27 +03:00
parent 06918f9a77
commit fbd860a4ad

View File

@ -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)