Fix 'loading fail' in front-end for announcement
The show action was returning an array instead of a bulletin
This commit is contained in:
parent
499930a680
commit
1ebf460f7e
|
@ -23,8 +23,8 @@ class Panel::Announcement::FrontEnd::BulletinsController < OrbitWidgetController
|
||||||
end
|
end
|
||||||
|
|
||||||
def show
|
def show
|
||||||
@bulletin = Bulletin.can_display.where.where(_id: params[:id])
|
@bulletin = Bulletin.can_display.where(_id: params[:id]).first
|
||||||
get_categorys
|
get_categorys
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
|
|
Reference in New Issue