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