Fix bug.
This commit is contained in:
parent
a4ef044f7f
commit
e91fe1814e
|
@ -201,6 +201,9 @@ module AnnouncementsHelper
|
|||
tags = page.tags
|
||||
tags = params[:tags] if params[:tags].present?
|
||||
categories = params['category']=='all' ? (page.categories || []) : (Array(params['category']) rescue (page.categories || []))
|
||||
if params['category'].present?
|
||||
tags = ["all"]
|
||||
end
|
||||
end
|
||||
if !params["source"].present?
|
||||
if @type == "show_widget"
|
||||
|
|
Loading…
Reference in New Issue