Skip to content

Commit

Permalink
Merge pull request ManageIQ#15810 from eclarizio/fix_for_nil_dialog
Browse files Browse the repository at this point in the history
Fix for custom button not passing target object to dynamic dialog fields
  • Loading branch information
gmcculloug authored Aug 14, 2017
2 parents b1d60c5 + f8f29e8 commit ad6fdb6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/dialog.rb
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,8 @@ def validate_field_data

def init_fields_with_values(values)
dialog_field_hash.each do |key, field|
values[key] = field.value
field.dialog = self
values[key] = field.value
end
dialog_field_hash.each { |key, field| values[key] = field.initialize_with_values(values) }
dialog_field_hash.each { |_key, field| field.update_values(values) }
Expand Down

0 comments on commit ad6fdb6

Please sign in to comment.