Fix annc iframe bug
This commit is contained in:
parent
9817e5a202
commit
d17e54bbc0
|
@ -330,12 +330,12 @@ class AnnouncementsController < ApplicationController
|
|||
@type = "show_widget"
|
||||
@show_page = params[:show_page]
|
||||
if params[:tags].nil?
|
||||
@tags = ModuleApp.where(:key => "announcement").first.tags.map{|t| t.id.to_s}
|
||||
@tags = ['all']
|
||||
else
|
||||
@tags = params[:tags]
|
||||
end
|
||||
if params[:categories].nil?
|
||||
@categories = ModuleApp.where(:key => "announcement").first.categories.map{|c| c.id.to_s}
|
||||
@categories = ['all']
|
||||
else
|
||||
@categories = params[:categories]
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue