##// END OF EJS Templates
Fixed: error when sorting the messages if there's only one board for the project....
Jean-Philippe Lang -
r877:cc8220dde80c
parent child
Show More
@@ -32,7 +32,6 class BoardsController < ApplicationController
32 32 if @boards.size == 1
33 33 @board = @boards.first
34 34 show
35 render :action => 'show'
36 35 end
37 36 end
38 37
@@ -46,7 +45,7 class BoardsController < ApplicationController
46 45 :include => [:author, {:last_reply => :author}],
47 46 :limit => @topic_pages.items_per_page,
48 47 :offset => @topic_pages.current.offset
49 render :action => 'show', :layout => false if request.xhr?
48 render :action => 'show', :layout => !request.xhr?
50 49 end
51 50
52 51 verify :method => :post, :only => [ :destroy ], :redirect_to => { :action => :index }
General Comments 0
You need to be logged in to leave comments. Login now