summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2012-04-06 13:51:16 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2012-04-06 13:51:16 +0000
commitab28a55b4eca8a89664921df2c9a96a758c487c7 (patch)
treeb9f663b78aa61c93deb7454e63066f7d576439e6
parentdd1163b58a30285f5252fa18c41e935e154ab10e (diff)
downloadredmine-ab28a55b4eca8a89664921df2c9a96a758c487c7.tar.gz
redmine-ab28a55b4eca8a89664921df2c9a96a758c487c7.zip
Fixed test_show_with_permission_should_display_the_new_message_form broken by r9351.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9359 e93f8b46-1217-0410-a6f0-8f06a7374b81
-rw-r--r--app/controllers/boards_controller.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/boards_controller.rb b/app/controllers/boards_controller.rb
index 380933960..253cb1e98 100644
--- a/app/controllers/boards_controller.rb
+++ b/app/controllers/boards_controller.rb
@@ -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 {