Permalink
Browse files

Fixes detection of selected value for mapper select tag.

  • Loading branch information...
1 parent b010cc8 commit 92492d22def7e5bab690e600fbc9e6a0076f41c4 Thomas von Deyen committed May 14, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 app/views/csv_magic/mapper.html.erb
@@ -13,7 +13,7 @@
<th>
<%= select_tag("fields[#{column_index + 1}]", options_for_select(
@mapper.map_fields,
- @mapper.map_fields[header[column_index]]
+ header[column_index].to_s.to_sym
), :include_blank => true, :class => 'field_options') %>
</th>
<%- end -%>

0 comments on commit 92492d2

Please sign in to comment.