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