summaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
authorEric Davis <edavis@littlestreamsoftware.com>2009-12-29 23:33:46 +0000
committerEric Davis <edavis@littlestreamsoftware.com>2009-12-29 23:33:46 +0000
commite1423c7c23b93849938568fc665eeee9d58a1d4f (patch)
treee9fefd97f9951831e8a329bb5d3ed1cbdc78a407 /app
parent9c9f6722f6aa5aa64aa5faa7c807d2a54dc6aeec (diff)
downloadredmine-e1423c7c23b93849938568fc665eeee9d58a1d4f.tar.gz
redmine-e1423c7c23b93849938568fc665eeee9d58a1d4f.zip
Merged r3263 from trunk
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/branches/0.9-stable@3264 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app')
-rw-r--r--app/controllers/issues_controller.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/controllers/issues_controller.rb b/app/controllers/issues_controller.rb
index 0cb815bec..2e0ed6fb3 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)