- Fixed bug 4652: node loses its terms after getting promoted, declined or expired.
parent
033b2e2c0d
commit
7bbf844073
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue