Fix annc iframe bug
This commit is contained in:
1 parent
9817e5a202
commit
d17e54bbc0
1 file changed
+2
-2
@@ -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
|
||||
|
||||
Reference in new issue
Block a user