Skip to content
Snippets Groups Projects
Commit 9e0e109d authored by Dries Buytaert's avatar Dries Buytaert
Browse files

- Patch #530132 by dropcube: node-terms associations are not removed from DB...

- Patch #530132 by dropcube: node-terms associations are not removed from DB when a node revision is deleted.
parent 48eaadd2
No related branches found
No related tags found
No related merge requests found
......@@ -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');
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment