Add call_hook for rabbitmq plugin. Helpdesk emails fix.

This commit is contained in:
Alexandr Antonov 2023-05-24 16:42:28 +03:00
parent 2ff27d40e9
commit 755ff96af9

View File

@ -146,6 +146,7 @@ class HelpdeskController < HelpdeskBaseController
@issue.save_attachments(params[:attachments] || (params[:ticket][:issue] && params[:ticket][:issue][:uploads]))
if @issue.save
call_hook(:controller_emailticket_new_after_save, {:params => params, :issue => @issue})
process_helpdesk_send_as(process_helpdesk_send_as(params[:ticket][:send_as]))
HelpdeskMailer.auto_answer(@contact, @issue) if HelpdeskSettings['helpdesk_send_notification', @project].to_i > 0
HelpdeskTicket.autoclose(@project)