Fix bug.
This commit is contained in:
parent
aec902e964
commit
dc9c36711d
|
@ -149,7 +149,7 @@ class AnnouncementFeedsController < ApplicationController
|
|||
category_ids << cat.id.to_s
|
||||
category_titles << {"title_translations" => cat.title_translations}
|
||||
end
|
||||
a["category"] = {"title_translations" => cat.title_translations}
|
||||
a["category"] = {"title_translations" => (cat.title_translations rescue {})}
|
||||
anns.bulletin_links.each do |bl|
|
||||
b = {}
|
||||
b["url"] = bl.url
|
||||
|
@ -167,7 +167,8 @@ class AnnouncementFeedsController < ApplicationController
|
|||
end
|
||||
{
|
||||
"announcements" => all_anns,
|
||||
"tags" => tag_names
|
||||
"tags" => tag_names,
|
||||
"categories" => category_titles
|
||||
}
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue