summaryrefslogtreecommitdiff
path: root/modules/queue.module
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2003-12-18 21:05:02 +0000
committerDries Buytaert <dries@buytaert.net>2003-12-18 21:05:02 +0000
commit7bbf844073bebf66938129865b4acbb7b5c0c1aa (patch)
treefadcb95aca55541be40470771b4b1655f1dfeb16 /modules/queue.module
parent033b2e2c0debb3a44d10bf84541e3b178eaf7222 (diff)
downloadbrdo-7bbf844073bebf66938129865b4acbb7b5c0c1aa.tar.gz
brdo-7bbf844073bebf66938129865b4acbb7b5c0c1aa.tar.bz2
- Fixed bug 4652: node loses its terms after getting promoted, declined or expired.
Diffstat (limited to 'modules/queue.module')
-rw-r--r--modules/queue.module5
1 files changed, 5 insertions, 0 deletions
diff --git a/modules/queue.module b/modules/queue.module
index 40f619660..c17f7a12c 100644
--- a/modules/queue.module
+++ b/modules/queue.module
@@ -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;