Fix annc iframe bug

This commit is contained in:
BoHung Chiu 2020-05-19 16:06:20 +08:00
parent 9817e5a202
commit d17e54bbc0
1 changed files with 2 additions and 2 deletions

View File

@ -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