diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2018-11-29 16:06:30 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2018-11-29 16:06:30 +0000 |
commit | 4f8b039ef6144b5a3c25105cfe27f71db4c51721 (patch) | |
tree | 3bc6e13499e4ccc6a407204631f89dc37d55733c /app/models/issue_import.rb | |
parent | a6d8e17e79db9faeffe02611af0c0d93280f8686 (diff) | |
download | redmine-4f8b039ef6144b5a3c25105cfe27f71db4c51721.tar.gz redmine-4f8b039ef6144b5a3c25105cfe27f71db4c51721.zip |
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
Diffstat (limited to 'app/models/issue_import.rb')
-rw-r--r-- | app/models/issue_import.rb | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/app/models/issue_import.rb b/app/models/issue_import.rb index ad04c0be5..9fc4f5550 100644 --- a/app/models/issue_import.rb +++ b/app/models/issue_import.rb @@ -122,7 +122,10 @@ class IssueImport < Import end end 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 elsif create_versions? version = issue.project.versions.build |