- Patch #530132 by dropcube: node-terms associations are not removed from DB when a node revision is deleted.

merge-requests/26/head
Dries Buytaert 2009-07-31 09:58:55 +00:00
parent 48eaadd24e
commit 9e0e109d1d
1 changed files with 1 additions and 1 deletions

View File

@ -1715,7 +1715,7 @@ function taxonomy_node_delete($node) {
*/
function taxonomy_node_delete_revision($node) {
db_delete('taxonomy_term_node')
->condition('nid', $node->vid)
->condition('vid', $node->vid)
->execute();
drupal_static_reset('taxonomy_term_count_nodes');
}