]> source.dussan.org Git - redmine.git/commitdiff
Fixed test_show_with_permission_should_display_the_new_message_form broken by r9351.
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Fri, 6 Apr 2012 13:51:16 +0000 (13:51 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Fri, 6 Apr 2012 13:51:16 +0000 (13:51 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9359 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/controllers/boards_controller.rb

index 380933960951c52a3cb3b1c4c014ed5ff74da52e..253cb1e98452968e2d03204d0bcd2f8d986a44b7 100644 (file)
@@ -47,7 +47,7 @@ class BoardsController < ApplicationController
                                       :include => [:author, {:last_reply => :author}],
                                       :limit  =>  @topic_pages.items_per_page,
                                       :offset =>  @topic_pages.current.offset
-        @message = Message.new
+        @message = Message.new(:board => @board)
         render :action => 'show', :layout => !request.xhr?
       }
       format.atom {