##// END OF EJS Templates
Use named scope to find the matching version (#950)....
Jean-Philippe Lang -
r14115:519ad3b03d3c
parent child
Show More
@@ -95,7 +95,7 class IssueImport < Import
95 end
95 end
96 end
96 end
97 if issue.project && version_name = row_value(row, 'fixed_version')
97 if issue.project && version_name = row_value(row, 'fixed_version')
98 if version = issue.project.versions.detect {|v| v.name.downcase == version_name.downcase}
98 if version = issue.project.versions.named(version_name).first
99 attributes['fixed_version_id'] = version.id
99 attributes['fixed_version_id'] = version.id
100 elsif create_versions?
100 elsif create_versions?
101 version = issue.project.versions.build
101 version = issue.project.versions.build
General Comments 0
You need to be logged in to leave comments. Login now