Skip to content

Commit

Permalink
Merge pull request leovitch#16 from tatsus/patch
Browse files Browse the repository at this point in the history
store empty string as nil
  • Loading branch information
zh committed Nov 10, 2013
2 parents af7c8c5 + 9c7e45f commit 151246e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/importer_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 151246e

Please sign in to comment.