Commit 9e0e109d authored by Dries's avatar Dries

- 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
......@@ -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');
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment