This commit is contained in:
chiu 2020-12-16 17:41:02 +08:00
parent 4957e4a947
commit 55938d106a
1 changed files with 1 additions and 0 deletions

View File

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