diff options
author | Dries Buytaert <dries@buytaert.net> | 2009-07-31 09:58:55 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2009-07-31 09:58:55 +0000 |
commit | 9e0e109d1d498521aa606567bfe628e55a75d912 (patch) | |
tree | 2f79fdcb7fbd742aa75cc098984c8be2e914cd5c /modules | |
parent | 48eaadd24e79c91f3a991a6eb614105eca7a75a6 (diff) | |
download | brdo-9e0e109d1d498521aa606567bfe628e55a75d912.tar.gz brdo-9e0e109d1d498521aa606567bfe628e55a75d912.tar.bz2 |
- Patch #530132 by dropcube: node-terms associations are not removed from DB when a node revision is deleted.
Diffstat (limited to 'modules')
-rw-r--r-- | modules/taxonomy/taxonomy.module | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/taxonomy/taxonomy.module b/modules/taxonomy/taxonomy.module index 4c003cbb0..9a95ae49c 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'); } |