From d17e54bbc057f4a2d813346ca417127f9caf8972 Mon Sep 17 00:00:00 2001 From: bohung Date: Tue, 19 May 2020 16:06:20 +0800 Subject: [PATCH] Fix annc iframe bug --- app/controllers/announcements_controller.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/controllers/announcements_controller.rb b/app/controllers/announcements_controller.rb index 3763fb0..14bdf14 100644 --- a/app/controllers/announcements_controller.rb +++ b/app/controllers/announcements_controller.rb @@ -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