Bug #2489
closed
Is this going to be fixed before 1.2?
- Status changed from New to Ready For Testing
- Target version set to 1.2.0
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.
- Status changed from Ready For Testing to Closed
- % Done changed from 0 to 100
Also available in: Atom
PDF