Closed (fixed)
Project:
Flag
Version:
7.x-2.x-dev
Component:
Flag core
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
17 Jul 2012 at 16:31 UTC
Updated:
3 Aug 2012 at 08:21 UTC
Jump to comment: Most recent file
Comments
Comment #1
joachim commentedThere's actually a bug here too:
This will remove types from flags for entities other than the current one if they happen to match.
Eg, both node and product entities have a bundle 'foo'. Both have flags. Deleting the product foo bundle will also zap the node flag's applicability to the node foo bundle.
Comment #2
joachim commentedCommitted this patch.
Tested it with deleting a node type 'foo' when there's also a vocabulary 'foo' and vice versa. Will also remove the comment type from comment flags, as hook_field_attach_delete_bundle() is also invoked for comments when a node type is deleted.