From 9e0e109d1d498521aa606567bfe628e55a75d912 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Fri, 31 Jul 2009 09:58:55 +0000 Subject: [PATCH] - Patch #530132 by dropcube: node-terms associations are not removed from DB when a node revision is deleted. --- modules/taxonomy/taxonomy.module | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/taxonomy/taxonomy.module b/modules/taxonomy/taxonomy.module index 4c003cbb026..9a95ae49c1d 100644 --- a/modules/taxonomy/taxonomy.module +++ b/modules/taxonomy/taxonomy.module @@ -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'); }