Skip to content
Snippets Groups Projects
Commit cc8220dd authored by Jean-Philippe Lang's avatar Jean-Philippe Lang
Browse files

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
parent 63ceea2e
Branches
Tags
No related merge requests found
......@@ -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 }
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment