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

- Fixed bug 4652: node loses its terms after getting promoted, declined or expired.
parent 033b2e2c
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
......@@ -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;
......
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