Actions
Bug #2489
closedBMC password doesn't save
Updated by Daniel Lobato Garcia over 11 years ago
Is this going to be fixed before 1.2?
Updated by Joseph Magen over 11 years ago
- Status changed from New to Ready For Testing
- Target version set to 1.2.0
Updated by Joseph Magen about 11 years ago
I found the bug, but I don't have a workaround yet. It appears to be a Rails bug.
If there is accepts_nested_attributes_for and a serialized field on the child object (attrs in Nic::Base), then the child object(attrs) is not updated IF the only fields that are changed are the elements of the serialized hash attrs (:username, :password, :provider). If another field on the interfaces form changes (i.e. :mac) in addition to :password, then everything saves fine. If ONLY :password is changed for the interface, then it appears rails does NOT recognize that attrs is DIRTY when @host. update_attributes and therefore NOTHING for interface is updated.
Updated by Joseph Magen about 11 years ago
- Status changed from Ready For Testing to Closed
- % Done changed from 0 to 100
Applied in changeset eaa6aec0023de21f0565b33e98f4c68990c0c2e2.
Actions