I have a situation where, within a field collection, if I change the field configuration in a way that should be non-destructive - for example change the label or default value for a field, or if I add another allowed value key/label pair to a list field, or change the label for an existing list field key - then all entities using that field collection will display those fields with undefined values on next edit.
All rows for the field collection in the field_data_{fieldname} table are removed (!)
This is not the case for the same field used directly in a node, where I can do any of the above without affecting existing field data in the node. Those rows in the field_data_{fieldname} table are unaffected.
Has anyone else seen anything like this?
Comments
Comment #1
John Pitcairn CreditAttribution: John Pitcairn commentedRats. I'm unable to reproduce this in a clean test install.
Yet it remains a problem on my dev version after uninstalling and reinstalling field_collection.
I can only conclude that the field tables are somehow screwed up - perhaps this is the result of #1571622: Views bulk operation adds the same field collection instance to multiple entities, or perhaps something to do with the fact that this is a site that was upgraded/migrated from D6/CCK.
Comment #2
jmuzz CreditAttribution: jmuzz commentedYou can try upgrading to a newer version. If it still happens maybe you could make a stripped down version of the database and post it here.