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_ids << cat.id.to_s
|
||||||
category_titles << {"title_translations" => cat.title_translations}
|
category_titles << {"title_translations" => cat.title_translations}
|
||||||
end
|
end
|
||||||
a["category"] = {"title_translations" => cat.title_translations}
|
a["category"] = {"title_translations" => (cat.title_translations rescue {})}
|
||||||
anns.bulletin_links.each do |bl|
|
anns.bulletin_links.each do |bl|
|
||||||
b = {}
|
b = {}
|
||||||
b["url"] = bl.url
|
b["url"] = bl.url
|
||||||
|
@ -167,7 +167,8 @@ class AnnouncementFeedsController < ApplicationController
|
||||||
end
|
end
|
||||||
{
|
{
|
||||||
"announcements" => all_anns,
|
"announcements" => all_anns,
|
||||||
"tags" => tag_names
|
"tags" => tag_names,
|
||||||
|
"categories" => category_titles
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue