diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2008-02-21 17:45:49 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2008-02-21 17:45:49 +0000 |
commit | 948097bc4d0f3a5163a9f464169790fee9b421cd (patch) | |
tree | 540db922ad84260e6d4d91e11ee2b7704c36f221 /app | |
parent | 09bd61da7436def15f3e5f576f8319dbac75b8f7 (diff) | |
download | redmine-948097bc4d0f3a5163a9f464169790fee9b421cd.tar.gz redmine-948097bc4d0f3a5163a9f464169790fee9b421cd.zip |
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
Diffstat (limited to 'app')
-rw-r--r-- | app/models/issue.rb | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/app/models/issue.rb b/app/models/issue.rb index 8dcacde72..6b9b3bd1c 100644 --- a/app/models/issue.rb +++ b/app/models/issue.rb @@ -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 |