Closed (fixed)
Project:
Views Bookmark
Version:
master
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
6 Oct 2007 at 19:04 UTC
Updated:
30 Oct 2007 at 23:22 UTC
When deleting nodes, users or content types, the associated entries in the bookmark tables are not deleted. This inconsistency doesn't appear to the user as long as one is using views (the joins with the node table take care of eliminating these rows from the result set), but it a simple query to get the bookmark count for a specific user or node will return a wrong number.
This patch simply deletes the orphaned entries using hook_nodeapi, hook_user and hook_node_type when the operation is 'delete'.
| Comment | File | Size | Author |
|---|---|---|---|
| views_bookmark.module0.patch | 1.4 KB | floretan |
Comments
Comment #1
quicksketchThanks! The nodeapi hook was added a while back, but I hadn't done node_type and user deletion. Committed to 5.x.
Comment #2
(not verified) commented