Fix bug.
This commit is contained in:
parent
e91fe1814e
commit
696765ef4c
|
@ -71,7 +71,7 @@ class AnnouncementsController < ApplicationController
|
||||||
if (params['category'] != page.categories rescue true)
|
if (params['category'] != page.categories rescue true)
|
||||||
@annc_page_title = Category.find(Array(params['category']).first).title rescue nil
|
@annc_page_title = Category.find(Array(params['category']).first).title rescue nil
|
||||||
end
|
end
|
||||||
if (params["tags"] != page.tags && !params["tags"].blank? && params["tags"].count == 1 rescue true)
|
if (params["tags"] != page.tags && !params["tags"].blank? && params["tags"].count == 1 && params["tags"][0] != "all" rescue true)
|
||||||
@annc_page_title = Tag.find(Array(params['tags']).first).name rescue nil
|
@annc_page_title = Tag.find(Array(params['tags']).first).name rescue nil
|
||||||
end
|
end
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue