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

4.7.x
Dries Buytaert 2006-02-23 12:21:15 +00:00
parent f29e0405f4
commit 19afd2ceb7
2 changed files with 4 additions and 2 deletions

View File

@ -492,7 +492,8 @@ function forum_submit(&$node) {
} }
} }
if ($node->tid && $node->shadow) { 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; $terms[] = $node->tid;
} }
$node->taxonomy = $terms; $node->taxonomy = $terms;

View File

@ -492,7 +492,8 @@ function forum_submit(&$node) {
} }
} }
if ($node->tid && $node->shadow) { 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; $terms[] = $node->tid;
} }
$node->taxonomy = $terms; $node->taxonomy = $terms;