mirror of
https://github.com/redmine/redmine.git
synced 2025-11-02 19:36:00 +01:00
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:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user