Skip to content

Commit

Permalink
fix preset value
Browse files Browse the repository at this point in the history
  • Loading branch information
ajb committed Mar 5, 2014
1 parent b43ccfb commit 90068e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/formbuilder/response_field_table.rb
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def render_input(value, opts = {})

columns_array.each_with_index do |column, j|
preset_val = Hash(self.field_options['preset_values']).try(:[], column).try(:[], i)
val = preset_val || value[column].try(:[], i)
val = preset_val.presence || value[column].try(:[], i)

str += """
<td>
Expand Down

0 comments on commit 90068e2

Please sign in to comment.