From 19afd2ceb75d13dd130ddcec02b39e8536594ddb Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Thu, 23 Feb 2006 12:21:15 +0000 Subject: - Patch #45850: it was impossible to create shadow topic. (Today's critical bugfix #2.) --- modules/forum/forum.module | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'modules/forum/forum.module') diff --git a/modules/forum/forum.module b/modules/forum/forum.module index 246cc17a1..1f540261c 100644 --- a/modules/forum/forum.module +++ b/modules/forum/forum.module @@ -492,7 +492,8 @@ function forum_submit(&$node) { } } if ($node->tid && $node->shadow) { - if (!in_array($node->tid, $node->taxonomy)) { + $terms = array_keys(taxonomy_node_get_terms($node->nid)); + if (!in_array($node->tid, $node->terms)) { $terms[] = $node->tid; } $node->taxonomy = $terms; -- cgit v1.2.3