diff options
-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 |