Fix bug that cannot filter by certain tag from show page tag link.
This commit is contained in:
parent
85e5cc215f
commit
4957e4a947
|
@ -197,6 +197,7 @@ module AnnouncementsHelper
|
||||||
categories = @categories
|
categories = @categories
|
||||||
else
|
else
|
||||||
tags = page.tags
|
tags = page.tags
|
||||||
|
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 || []))
|
||||||
end
|
end
|
||||||
if !params["source"].present?
|
if !params["source"].present?
|
||||||
|
|
Loading…
Reference in New Issue