Fix bug.
This commit is contained in:
parent
4957e4a947
commit
55938d106a
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue