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 committed 2012-04-23 14:47:33 +08:00
1 parent 499930a680
commit 1ebf460f7e
1 file changed
+2 -2
@@ -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