Fixed: error when sorting the messages if there's only one board for the project.

git-svn-id: http://redmine.rubyforge.org/svn/trunk@890 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang 2007-11-07 21:21:12 +00:00
parent 63ceea2e21
commit cc8220dde8
1 changed files with 1 additions and 2 deletions

View File

@ -32,7 +32,6 @@ class BoardsController < ApplicationController
if @boards.size == 1
@board = @boards.first
show
render :action => 'show'
end
end
@ -46,7 +45,7 @@ class BoardsController < ApplicationController
:include => [:author, {:last_reply => :author}],
:limit => @topic_pages.items_per_page,
:offset => @topic_pages.current.offset
render :action => 'show', :layout => false if request.xhr?
render :action => 'show', :layout => !request.xhr?
end
verify :method => :post, :only => [ :destroy ], :redirect_to => { :action => :index }