mirror of
https://github.com/meineerde/redmine.git
synced 2025-12-19 15:01:14 +00:00
CSV importer ignores shared version names of other projects (#30001).
Patch by Yuuki NARA and Go MAEDA. git-svn-id: http://svn.redmine.org/redmine/trunk@17658 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
a6d8e17e79
commit
4f8b039ef6
@ -122,7 +122,10 @@ class IssueImport < Import
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
if issue.project && version_name = row_value(row, 'fixed_version')
|
if issue.project && version_name = row_value(row, 'fixed_version')
|
||||||
if version = issue.project.versions.named(version_name).first
|
version =
|
||||||
|
issue.project.versions.named(version_name).first ||
|
||||||
|
issue.project.shared_versions.named(version_name).first
|
||||||
|
if version
|
||||||
attributes['fixed_version_id'] = version.id
|
attributes['fixed_version_id'] = version.id
|
||||||
elsif create_versions?
|
elsif create_versions?
|
||||||
version = issue.project.versions.build
|
version = issue.project.versions.build
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user