Skip to content
This repository has been archived by the owner on Apr 26, 2022. It is now read-only.

Commit

Permalink
Merge pull request #21 from TACSUO/master
Browse files Browse the repository at this point in the history
discussion list
  • Loading branch information
jlapier committed Oct 8, 2012
2 parents c3ab69a + 1fbb403 commit 26f97b1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/controllers/message_posts_controller.rb
Expand Up @@ -53,7 +53,8 @@ def create
flash[:notice] = "Posted: #{@message_post.subject}"
format.html do
if @message_post.thread
redirect_to forum_message_post_url(@forum, @message_post.thread, :anchor => @message_post.id,
@message_post.thread.update_attribute(:updated_at, Time.now)
redirect_to forum_message_post_url(@forum, @message_post.thread, :anchor => @message_post.id,
:page => @message_post.thread.child_posts.last_page_number_for)
else
redirect_to forum_message_post_url(@forum, @message_post)
Expand Down

0 comments on commit 26f97b1

Please sign in to comment.