summaryrefslogtreecommitdiffstats
path: root/app/controllers/boards_controller.rb
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2007-11-24 12:25:07 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2007-11-24 12:25:07 +0000
commit29b3614bcb759214bb1aba77c27ac11c8ef6b15b (patch)
tree1783bd1f65552a4e2cea332bda9f42b1831d4e78 /app/controllers/boards_controller.rb
parent866e9e2503713c67fd33b389d4e840c04ce1562d (diff)
downloadredmine-29b3614bcb759214bb1aba77c27ac11c8ef6b15b.tar.gz
redmine-29b3614bcb759214bb1aba77c27ac11c8ef6b15b.zip
Forums enhancements:
* messages can now be edited/deleted (explicit permissions need to be given) * topics can be locked so that no reply can be added (only by users allowed to edit messages) * topics can be marked as sticky so that they always appear at the top of the list (only by users allowed to edit messages) git-svn-id: http://redmine.rubyforge.org/svn/trunk@926 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/controllers/boards_controller.rb')
-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 3a8b021a3..200792370 100644
--- a/app/controllers/boards_controller.rb
+++ b/app/controllers/boards_controller.rb
@@ -41,7 +41,7 @@ class BoardsController < ApplicationController
@topic_count = @board.topics.count
@topic_pages = Paginator.new self, @topic_count, 25, params['page']
- @topics = @board.topics.find :all, :order => sort_clause,
+ @topics = @board.topics.find :all, :order => "#{Message.table_name}.sticky DESC, #{sort_clause}",
:include => [:author, {:last_reply => :author}],
:limit => @topic_pages.items_per_page,
:offset => @topic_pages.current.offset