Skip to content

Commit

Permalink
Merge pull request #1700 from eclarizio/BZ1463827
Browse files Browse the repository at this point in the history
Fix for Drop Down List Dialog does not keep default value for Integer type
(cherry picked from commit 0116bb9)

https://bugzilla.redhat.com/show_bug.cgi?id=1475020
  • Loading branch information
himdel authored and simaishi committed Jul 25, 2017
1 parent 53e5e17 commit 9218869
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/controllers/miq_ae_customization_controller/dialogs.rb
Expand Up @@ -523,8 +523,9 @@ def field_value_accept
selected = @edit[:field_default_value]
page << "$('#field_default_value').selectpicker('destroy');"
page.replace("field_default_value",
:text => select_tag('field_default_value', options_for_select(values, selected), 'data-miq_observe' => {:interval => '.5', :url => url}.to_json).to_s)
:text => select_tag('field_default_value', options_for_select(values, selected)))
page << "$('#field_default_value').selectpicker();"
page << "miqSelectPickerEvent('field_default_value', '#{url}');"
end
end

Expand Down

0 comments on commit 9218869

Please sign in to comment.