From 9c7e45fb5682661e276f52a3019c7381e29559fd Mon Sep 17 00:00:00 2001 From: tatsus Date: Sat, 9 Nov 2013 19:51:16 +0900 Subject: [PATCH] store empty string as nil --- app/controllers/importer_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/importer_controller.rb b/app/controllers/importer_controller.rb index ef50561..ff9eab8 100644 --- a/app/controllers/importer_controller.rb +++ b/app/controllers/importer_controller.rb @@ -373,7 +373,7 @@ def result # custom fields custom_failed_count = 0 issue.custom_field_values = issue.available_custom_fields.inject({}) do |h, cf| - if value = row[attrs_map[cf.name]] + if value = row[attrs_map[cf.name]].blank? ? nil : row[attrs_map[cf.name]] begin if cf.field_format == 'user' value = user_id_for_login!(value).to_s