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:
parent
09bd61da74
commit
948097bc4d
|
@ -66,8 +66,10 @@ class Issue < ActiveRecord::Base
|
||||||
transaction do
|
transaction do
|
||||||
if new_project && project_id != new_project.id
|
if new_project && project_id != new_project.id
|
||||||
# delete issue relations
|
# delete issue relations
|
||||||
|
unless Setting.cross_project_issue_relations?
|
||||||
self.relations_from.clear
|
self.relations_from.clear
|
||||||
self.relations_to.clear
|
self.relations_to.clear
|
||||||
|
end
|
||||||
# issue is moved to another project
|
# issue is moved to another project
|
||||||
self.category = nil
|
self.category = nil
|
||||||
self.fixed_version = nil
|
self.fixed_version = nil
|
||||||
|
|
Loading…
Reference in New Issue