Currently, deleting an instance does not also delete it from the blocks table. This leaves orphan records in the blocks table. It would be ideal if the behavior is changed to work like custom blocks (which deletes all instance-associated records in both the blocks_custom table and the blocks table). I believe only the following needs to be added to the multiblock_delete function in multiblock.module:
db_delete('block')
->condition('module', 'multiblock')
->condition('delta', (int) $multiblock_delta)
->execute();
db_delete('block_role')
->condition('module', 'multiblock')
->condition('delta', (int) $multiblock_delta)
->execute();
I will try roll patch.
Comments
Comment #1
phferraz commentedHi there,
Is this works without problem?
Give us a feedback about that. Thank you.
Comment #2
amanaplan commentedRoll of a patch to correct issue.
Comment #3
amanaplan commentedHave tested in many different instances and works. Marking RTBC.
Comment #4
amanaplan commentedHave tested in many different instances and works. Marking RTBC.
Comment #5
andrewlevine commentedSorry for the long wait. Just committed to 7.x-1.x-dev. Thanks for your help.