]> git.mjollnir.org Git - moodle.git/commitdiff
Fixed bug where text format of a new discussion was not being saved
authormoodler <moodler>
Sun, 4 May 2003 03:43:46 +0000 (03:43 +0000)
committermoodler <moodler>
Sun, 4 May 2003 03:43:46 +0000 (03:43 +0000)
mod/forum/lib.php

index 538c46d15f45c72a090b5024e42480d7b51a6ea1..2d949cef6c4f74259527bfac49d8f3ba19c9bf04 100644 (file)
@@ -1308,6 +1308,7 @@ function forum_add_discussion($discussion) {
     $post->attachment  = "";
     $post->forum       = $discussion->forum;
     $post->course      = $discussion->course;
+    $post->format      = $discussion->format;
 
     if (! $post->id = insert_record("forum_posts", $post) ) {
         return 0;