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,7 +23,7 @@ class Panel::Announcement::FrontEnd::BulletinsController < OrbitWidgetController
|
|||
end
|
||||
|
||||
def show
|
||||
@bulletin = Bulletin.can_display.where.where(_id: params[:id])
|
||||
@bulletin = Bulletin.can_display.where(_id: params[:id]).first
|
||||
get_categorys
|
||||
end
|
||||
|
||||
|
|
Reference in New Issue