Commit 3000db0d authored by Gerhard Killesreiter's avatar Gerhard Killesreiter
Browse files

#40664, adding new forum topic, forum not pre-selected in pull down menu., fix...

#40664, adding new forum topic, forum not pre-selected in pull down menu., fix by Jonas Kvarnstrom, patch by drumm
parent f5e15dcb
......@@ -402,7 +402,8 @@ function forum_form(&$node) {
function forum_prepare(&$node) {
if (!$node->nid) {
// new topic
$node->taxonomy[arg(3)] = 1;
$node->taxonomy[arg(3)]->vid = _forum_get_vid();
$node->taxonomy[arg(3)]->tid = arg(3);
}
}
......
......@@ -402,7 +402,8 @@ function forum_form(&$node) {
function forum_prepare(&$node) {
if (!$node->nid) {
// new topic
$node->taxonomy[arg(3)] = 1;
$node->taxonomy[arg(3)]->vid = _forum_get_vid();
$node->taxonomy[arg(3)]->tid = arg(3);
}
}
......
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