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
|
||||
else
|
||||
tags = page.tags
|
||||
tags = params[:tags] if params[:tags].present?
|
||||
categories = params['category']=='all' ? (page.categories || []) : ([Category.find(params['category'])] rescue (page.categories || []))
|
||||
end
|
||||
if !params["source"].present?
|
||||
|
|
Loading…
Reference in New Issue