@@ -150,6 +150,7 class IssuesController < ApplicationController | |||||
150 | requested_status = IssueStatus.find_by_id(params[:issue][:status_id]) |
|
150 | requested_status = IssueStatus.find_by_id(params[:issue][:status_id]) | |
151 | # Check that the user is allowed to apply the requested status |
|
151 | # Check that the user is allowed to apply the requested status | |
152 | @issue.status = (@allowed_statuses.include? requested_status) ? requested_status : default_status |
|
152 | @issue.status = (@allowed_statuses.include? requested_status) ? requested_status : default_status | |
|
153 | call_hook(:controller_issues_new_before_save, { :params => params, :issue => @issue }) | |||
153 | if @issue.save |
|
154 | if @issue.save | |
154 | attach_files(@issue, params[:attachments]) |
|
155 | attach_files(@issue, params[:attachments]) | |
155 | flash[:notice] = l(:notice_successful_create) |
|
156 | flash[:notice] = l(:notice_successful_create) |
General Comments 0
You need to be logged in to leave comments.
Login now