Fixed that target version is lost on project copy for issues that are assigned to a shared version from another project.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10333 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -776,7 +776,7 @@ class Project < ActiveRecord::Base
|
||||
new_issue.copy_from(issue, :subtasks => false)
|
||||
new_issue.project = self
|
||||
# Reassign fixed_versions by name, since names are unique per project
|
||||
if issue.fixed_version
|
||||
if issue.fixed_version && issue.fixed_version.project == project
|
||||
new_issue.fixed_version = self.versions.detect {|v| v.name == issue.fixed_version.name}
|
||||
end
|
||||
# Reassign the category by name, since names are unique per project
|
||||
|
||||
Reference in New Issue
Block a user