Adds a controller hook before issue move (#4850).

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3457 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang 2010-02-19 19:10:50 +00:00
parent 77459f9ae4
commit 08d7c5bfb4
1 changed files with 1 additions and 0 deletions

View File

@ -327,6 +327,7 @@ class IssuesController < ApplicationController
end end
end end
issue.init_journal(User.current) issue.init_journal(User.current)
call_hook(:controller_issues_move_before_save, { :params => params, :issue => issue, :target_project => @target_project, :copy => !!@copy })
if r = issue.move_to(@target_project, new_tracker, {:copy => @copy, :attributes => changed_attributes}) if r = issue.move_to(@target_project, new_tracker, {:copy => @copy, :attributes => changed_attributes})
moved_issues << r moved_issues << r
else else