]> source.dussan.org Git - redmine.git/commitdiff
CSV importer ignores shared version names of other projects (#30001).
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Thu, 29 Nov 2018 16:06:30 +0000 (16:06 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Thu, 29 Nov 2018 16:06:30 +0000 (16:06 +0000)
Patch by Yuuki NARA and Go MAEDA.

git-svn-id: http://svn.redmine.org/redmine/trunk@17658 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/models/issue_import.rb

index ad04c0be5fc1a19a50cac3deb747875e921908cc..9fc4f55502646b7bcfb98d73e636efd124edd931 100644 (file)
@@ -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