I try newest version 7.x-1.0-beta11 and version dev also i got big issue. when i delete items (/field-collection/field-child/xxxx/delete)
it delete in data base field collection item and all data revison field children data but it doesn't delete data field children .
I use VBO to delete field collection items it works fine : field collection item , data field child and revision is gone. that means entity delete works fine field_collection_item_delete_confirm_submit have to add field collection -> delete or use entity_delete
Quick test :
SELECT * FROM field_data_field_child_type WHERE entity_id
NOT IN (SELECT field_child_value FROM field_data_field_child)
if field collection delete works it must be 0 but i got a lots of line
Comment | File | Size | Author |
---|---|---|---|
#6 | field_collection-field-collection-doesnt-delete-children-data-2763395-6.patch | 697 bytes | Andrew Gorokhovets |
#5 | field-collection-delete-data-D7.patch | 764 bytes | lazzyvn |
Comments
Comment #1
lazzyvn CreditAttribution: lazzyvn commented/sites/all/modules/contrib/field_collection/field_collection.pages.inc
it works fine
Comment #2
lazzyvn CreditAttribution: lazzyvn commentedI'm not sure to patch in function deleteRevision or use delete entity direct
Comment #3
lazzyvn CreditAttribution: lazzyvn commentedhow to create patch ? somme one can show me please
Comment #4
jmuzz CreditAttribution: jmuzz commentedThanks lazzyvn.
It would be nice to have this as a patch. It will also need to include an update to clean out any lingering field collection item data that may have been left by the old behaviour.
Comment #5
lazzyvn CreditAttribution: lazzyvn commentedHere is my patch
Comment #6
Andrew Gorokhovets CreditAttribution: Andrew Gorokhovets as a volunteer commentedUpdated the patch for the last dev version.
Comment #8
ram4nd CreditAttribution: ram4nd as a volunteer commented