Revision 7464248b
Added by Joseph Magen almost 11 years ago
- ID 7464248beb123df9d2044c97f84bf2653ca554d5
app/views/hosts/_interfaces.html.erb | ||
---|---|---|
<%= password_f f, :password, ifs_bmc_opts(f.object) %>
|
||
<%# TODO: current rails version does not allow to pass a selected value where there is no method (e.g. providers below) rescue here is a hack %>
|
||
<%= selectable_f f, :provider, Nic::BMC::PROVIDERS, {:selected => nil}, ifs_bmc_opts(f.object) rescue f.hidden_field :provider, :value => 'IPMI' %>
|
||
<%# Hack for Rails bug in 3.2.13 - serialized field attrs does not update through accepts_nested_attributes_for if it's
|
||
the only field that is dirty. If updated_at is explicited updated, then attrs will also be updated correctly %>
|
||
<%= f.hidden_field :updated_at, :value => Time.now %>
|
||
|
||
<% end %>
|
||
|
||
<% end %>
|
Also available in: Unified diff
fixes #2489 - fixes BMC password caused by rails bug accepts_nested_attributes_for and serialized child field
(cherry picked from commit eaa6aec0023de21f0565b33e98f4c68990c0c2e2)