This commit is contained in:
BoHung Chiu 2021-05-11 10:14:49 +08:00
parent a4ef044f7f
commit e91fe1814e
1 changed files with 3 additions and 0 deletions

View File

@ -201,6 +201,9 @@ module AnnouncementsHelper
tags = page.tags tags = page.tags
tags = params[:tags] if params[:tags].present? tags = params[:tags] if params[:tags].present?
categories = params['category']=='all' ? (page.categories || []) : (Array(params['category']) rescue (page.categories || [])) categories = params['category']=='all' ? (page.categories || []) : (Array(params['category']) rescue (page.categories || []))
if params['category'].present?
tags = ["all"]
end
end end
if !params["source"].present? if !params["source"].present?
if @type == "show_widget" if @type == "show_widget"