Active
Project:
cck_map
Version:
5.x-3.3
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
19 May 2008 at 03:31 UTC
Updated:
19 May 2008 at 03:31 UTC
When a node containing a cck_map field is deleted, the corresponding entry in table cck_map isn't deleted.
That's because function cck_map_field in cck_map.module has no handler for 'delete' as an operation; fixed by adding
case 'delete':
if ($node->nid) {
db_query("DELETE FROM {cck_map} WHERE nid = %d", $node->nid);
}
break;
to the end of the switch clauses at line 266.
Pete.