Fix bug.
This commit is contained in:
parent
4957e4a947
commit
55938d106a
|
@ -199,6 +199,7 @@ 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 || []) : ([Category.find(params['category'])] rescue (page.categories || []))
|
categories = params['category']=='all' ? (page.categories || []) : ([Category.find(params['category'])] rescue (page.categories || []))
|
||||||
|
categories = ["all"] if params[:tags].present?
|
||||||
end
|
end
|
||||||
if !params["source"].present?
|
if !params["source"].present?
|
||||||
if @type == "show_widget"
|
if @type == "show_widget"
|
||||||
|
|
Loading…
Reference in New Issue