- Fixed bug 4652: node loses its terms after getting promoted, declined or expired.

4.4.x
Dries Buytaert 2003-12-18 21:05:02 +00:00
parent 033b2e2c0d
commit 7bbf844073
1 changed files with 5 additions and 0 deletions

View File

@ -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;