Permalink
Browse files

Fix for bug 3467: Adding "single discussion forum" was broken. Now wo…

…rks.
  • Loading branch information...
1 parent d36fc35 commit 70057cf44f9a36da9765bedebc0171887ab1a591 defacer committed Jun 14, 2005
Showing with 3 additions and 1 deletion.
  1. +2 −1 mod/forum/lib.php
  2. +1 −0 mod/forum/mod.html
View
@@ -111,8 +111,9 @@ function forum_add_instance($forum) {
$discussion->name = $forum->name;
$discussion->intro = $forum->intro;
$discussion->assessed = $forum->assessed;
+ $discussion->format = $forum->format;
- if (! forum_add_discussion($discussion)) {
+ if (! forum_add_discussion($discussion, $discussion->intro)) {
error('Could not add the discussion for this forum');
}
}
View
@@ -295,6 +295,7 @@
<input type="hidden" name="modulename" value="<?php p($form->modulename) ?>" />
<input type="hidden" name="instance" value="<?php p($form->instance) ?>" />
<input type="hidden" name="mode" value="<?php p($form->mode) ?>" />
+<input type="hidden" name="format" value="<?php echo $defaultformat; ?>" />
<input type="submit" value="<?php print_string("savechanges") ?>" />
<input type="submit" name="cancel" value="<?php print_string("cancel") ?>" />
</center>

0 comments on commit 70057cf

Please sign in to comment.