Fix 'loading fail' in front-end for announcement

The show action was returning an array instead of a bulletin
This commit is contained in:
Christophe Vilayphiou 2012-04-23 14:47:33 +08:00
parent 499930a680
commit 1ebf460f7e
1 changed files with 2 additions and 2 deletions

View File

@ -23,8 +23,8 @@ class Panel::Announcement::FrontEnd::BulletinsController < OrbitWidgetController
end
def show
@bulletin = Bulletin.can_display.where.where(_id: params[:id])
get_categorys
@bulletin = Bulletin.can_display.where(_id: params[:id]).first
get_categorys
end