When deleting a node with a field collection that for some reason cannot be loaded, for instance because the id of the FC item point to a row that doesn't exist on the database the module fires a PHP Fatal error and interrupts the execution of the script.
This happen because the variable on $fci on the function field_collection_item_delete() at field_collection.module has a FALSE value and not an object, and in the line after loading $fci there is $fci->delete() without checking that there is an object on the variable...
This could be simply solved by adding an if() else() to the Deletion callback function, function field_collection_item_delete($id).
Comment | File | Size | Author |
---|---|---|---|
#2 | patch.txt | 431 bytes | cubeinspire |
Comments
Comment #2
cubeinspire CreditAttribution: cubeinspire commentedThis is the patch to correct this Fatal Error to happen.
Comment #3
jmuzz CreditAttribution: jmuzz commentedTry the latest dev or beta version.