summaryrefslogtreecommitdiffstats
path: root/app/models/issue_import.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/models/issue_import.rb')
-rw-r--r--app/models/issue_import.rb5
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