mirror of
https://github.com/redmine/redmine.git
synced 2025-12-16 05:20:28 +01:00
add empty line after guard clause to ImportsController
git-svn-id: http://svn.redmine.org/redmine/trunk@20236 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -179,6 +179,7 @@ class ImportsController < ApplicationController
|
||||
# Core fields
|
||||
import_type::AUTO_MAPPABLE_FIELDS.each do |field_nm, label_nm|
|
||||
next if mappings.include?(field_nm)
|
||||
|
||||
index = headers.index(field_nm) || headers.index(l(label_nm).downcase)
|
||||
if index
|
||||
mappings[field_nm] = index
|
||||
@@ -189,6 +190,7 @@ class ImportsController < ApplicationController
|
||||
@custom_fields.each do |field|
|
||||
field_nm = "cf_#{field.id}"
|
||||
next if mappings.include?(field_nm)
|
||||
|
||||
index = headers.index(field_nm) || headers.index(field.name.downcase)
|
||||
if index
|
||||
mappings[field_nm] = index
|
||||
|
||||
Reference in New Issue
Block a user