summaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2007-11-07 21:21:12 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2007-11-07 21:21:12 +0000
commitcc8220dde80c64027151a065f3dcc7f34a72f0af (patch)
tree640dabe8016314b98323f693ff78a4eb5191f64f /app
parent63ceea2e218367f4043580c15288c54ddc225114 (diff)
downloadredmine-cc8220dde80c64027151a065f3dcc7f34a72f0af.tar.gz
redmine-cc8220dde80c64027151a065f3dcc7f34a72f0af.zip
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
Diffstat (limited to 'app')
-rw-r--r--app/controllers/boards_controller.rb3
1 files changed, 1 insertions, 2 deletions
diff --git a/app/controllers/boards_controller.rb b/app/controllers/boards_controller.rb
index 2a90e9857..3a8b021a3 100644
--- a/app/controllers/boards_controller.rb
+++ b/app/controllers/boards_controller.rb
@@ -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 }