From 33fabb2634970c6362334bf29ac865262f78e7f0 Mon Sep 17 00:00:00 2001 From: Harry Bomrah Date: Wed, 23 Nov 2016 18:59:01 +0800 Subject: [PATCH] small fix for title empty --- app/controllers/announcements_controller.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/controllers/announcements_controller.rb b/app/controllers/announcements_controller.rb index 3e1f354..443eea5 100644 --- a/app/controllers/announcements_controller.rb +++ b/app/controllers/announcements_controller.rb @@ -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"],