summaryrefslogtreecommitdiff
path: root/modules/forum
diff options
context:
space:
mode:
Diffstat (limited to 'modules/forum')
-rw-r--r--modules/forum/forum.module3
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/forum/forum.module b/modules/forum/forum.module
index 4ccfa53f7..a79234c0a 100644
--- a/modules/forum/forum.module
+++ b/modules/forum/forum.module
@@ -298,8 +298,9 @@ function forum_submit(&$node) {
}
}
if ($node->tid && $node->shadow) {
+ // A shadow copy needs to be created. Retain existing term and add new term.
$terms = array_keys(taxonomy_node_get_terms($node->nid));
- if (!in_array($node->tid, $node->terms)) {
+ if (!in_array($node->tid, $terms)) {
$terms[] = $node->tid;
}
$node->taxonomy = $terms;