Commit 7bbf8440 authored by Dries's avatar Dries

- Fixed bug 4652: node loses its terms after getting promoted, declined or expired.
parent 033b2e2c
......@@ -64,6 +64,11 @@ function queue_vote($node, $vote) {
// Reload the updated node from the database:
$node = node_load(array("nid" => $node->nid));
$terms = module_invoke('taxonomy', 'node_get_terms', $node->nid, 'tid');
foreach ($terms as $term) {
$node->taxonomy[] = $term->tid;
}
if (variable_get("queue_threshold_post", 3) <= $node->score) {
$node->moderate = 0;
$node->promote = 1;
......
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