Commit 19afd2ce authored by Dries's avatar Dries

- Patch #45850: it was impossible to create shadow topic. (Today's critical bugfix #2.)

parent f29e0405
......@@ -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;
......
......@@ -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;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment