git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/branches/0.9-stable@3264
e93f8b46-1217-0410-a6f0-
8f06a7374b81
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)