summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorGerhard Killesreiter <killes_www_drop_org@227.no-reply.drupal.org>2006-04-06 18:36:57 +0000
committerGerhard Killesreiter <killes_www_drop_org@227.no-reply.drupal.org>2006-04-06 18:36:57 +0000
commit3000db0d136335ade730ed2864d3a32a35b6f2d4 (patch)
tree7f0dd9cd37caf815ed01726c23dbb73573976502 /modules
parentf5e15dcbc65709706e3570a7eb8900eecfb5fa64 (diff)
downloadbrdo-3000db0d136335ade730ed2864d3a32a35b6f2d4.tar.gz
brdo-3000db0d136335ade730ed2864d3a32a35b6f2d4.tar.bz2
#40664, adding new forum topic, forum not pre-selected in pull down menu., fix by Jonas Kvarnstrom, patch by drumm
Diffstat (limited to 'modules')
-rw-r--r--modules/forum.module3
-rw-r--r--modules/forum/forum.module3
2 files changed, 4 insertions, 2 deletions
diff --git a/modules/forum.module b/modules/forum.module
index d3f6ea154..e3fcb0216 100644
--- a/modules/forum.module
+++ b/modules/forum.module
@@ -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);
}
}
diff --git a/modules/forum/forum.module b/modules/forum/forum.module
index d3f6ea154..e3fcb0216 100644
--- a/modules/forum/forum.module
+++ b/modules/forum/forum.module
@@ -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);
}
}