Permalink
Browse files

If a post is updated that is also a discussion definition, then the d…

…iscussion

name is updated with the post subject.
  • Loading branch information...
1 parent 729be1a commit 0ab851127f54046b0c365502fdb454ef05a6b53b martin committed Aug 22, 2002
Showing with 3 additions and 0 deletions.
  1. +3 −0 mod/forum/lib.php
View
@@ -386,6 +386,9 @@ function forum_update_post($post) {
$post->modified = time();
+ if (!$post->parent) { // Post is a discussion starter - update discussion title too
+ set_field("forum_discussions", "name", $post->subject, "id", $post->discussion);
+ }
return update_record("forum_posts", $post);
}

0 comments on commit 0ab8511

Please sign in to comment.