]> source.dussan.org Git - redmine.git/commitdiff
Merged r3263 from trunk
authorEric Davis <edavis@littlestreamsoftware.com>
Tue, 29 Dec 2009 23:33:46 +0000 (23:33 +0000)
committerEric Davis <edavis@littlestreamsoftware.com>
Tue, 29 Dec 2009 23:33:46 +0000 (23:33 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/branches/0.9-stable@3264 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/controllers/issues_controller.rb

index 0cb815bec39a3a630a6c8e40f197d90a265186c5..2e0ed6fb3d6a96b0c43f69a443da2f0312c513c0 100644 (file)
@@ -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)