diff --git a/app/controllers/issues_controller.rb b/app/controllers/issues_controller.rb index 0cb815bec3..2e0ed6fb3d 100644 --- a/app/controllers/issues_controller.rb +++ b/app/controllers/issues_controller.rb @@ -150,6 +150,7 @@ class IssuesController < ApplicationController requested_status = IssueStatus.find_by_id(params[:issue][:status_id]) # Check that the user is allowed to apply the requested status @issue.status = (@allowed_statuses.include? requested_status) ? requested_status : default_status + call_hook(:controller_issues_new_before_save, { :params => params, :issue => @issue }) if @issue.save attach_files(@issue, params[:attachments]) flash[:notice] = l(:notice_successful_create)