small fix for title empty

This commit is contained in:
Harry Bomrah 2016-11-23 18:59:01 +08:00
parent 6936f49825
commit 33fabb2634
1 changed files with 2 additions and 2 deletions

View File

@ -133,8 +133,8 @@ class AnnouncementsController < ApplicationController
x = {
"bulletin_links" => links,
"bulletin_files" => files,
"title" => fa["title_translations"][locale],
"subtitle" => fa["subtitle_translations"][locale],
"title" => (fa["title_translations"][locale] rescue ""),
"subtitle" => (fa["subtitle_translations"][locale] rescue ""),
"statuses" => [status],
"category" => fa["category"],
"postdate" => fa["postdate"],