Index: post.php =================================================================== RCS file: /cvsroot/moodle/moodle/mod/forum/post.php,v retrieving revision 1.154.2.1 diff -u -r1.154.2.1 post.php --- post.php 12 Oct 2007 16:09:42 -0000 1.154.2.1 +++ post.php 27 Nov 2007 10:39:56 -0000 @@ -488,6 +488,13 @@ if (!forum_update_post($updatepost, $message)) { error(get_string("couldnotupdate", "forum"), $errordestination); } + if (($forum->type == 'single')&&($updatepost->parent == '0')){//updating first post of single discussion type -> updating forum intro + $forum->intro = $updatepost->message; + $forum->timemodified = time(); + if (!update_record("forum", $forum)) { + error(get_string("couldnotupdate", "forum"), $errordestination); + } + } $timemessage = 2; if (!empty($message)) { // if we're printing stuff about the file upload