Commit 948097bc authored by Jean-Philippe Lang's avatar Jean-Philippe Lang

Do not clear issue relations when moving an issue to another project if…

Do not clear issue relations when moving an issue to another project if cross-project issue relations are allowed (closes #696).

git-svn-id: http://redmine.rubyforge.org/svn/trunk@1164 e93f8b46-1217-0410-a6f0-8f06a7374b81
parent 09bd61da
......@@ -66,8 +66,10 @@ class Issue < ActiveRecord::Base
transaction do
if new_project && project_id != new_project.id
# delete issue relations
self.relations_from.clear
self.relations_to.clear
unless Setting.cross_project_issue_relations?
self.relations_from.clear
self.relations_to.clear
end
# issue is moved to another project
self.category = nil
self.fixed_version = nil
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment