- Patch #45850: it was impossible to create shadow topic. (Today's critical bugfix #2.)
parent
f29e0405f4
commit
19afd2ceb7
|
@ -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;
|
||||||
|
|
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue