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
This commit is contained in:
Jean-Philippe Lang 2008-02-21 17:45:49 +00:00
parent 09bd61da74
commit 948097bc4d
1 changed files with 4 additions and 2 deletions

View File

@ -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