Remove limit(1) to bulletins index action

This commit is contained in:
Christophe Vilayphiou 2012-03-27 19:22:50 +08:00
parent 5aad133b6c
commit b587b7ca6b
1 changed files with 1 additions and 1 deletions

View File

@ -13,7 +13,7 @@ class Panel::Announcement::BackEnd::BulletinsController < OrbitBackendController
# @bulletins = Bulletin.search(params[:search], params[:category_id])
# @bulletins = Bulletin.all.order_by([params[:sort], params[:direction]])
@bulletins = params[:sort] ? get_sorted_bulletins : Bulletin.limit(1).desc("postdate")
@bulletins = params[:sort] ? get_sorted_bulletins : Bulletin.all.desc("postdate")
@bulletin_categories = BulletinCategory.all
@bulletin_link = BulletinLink.new