From 10ed85e4fb08aab4ca8e93bbbce9356dc39c209d Mon Sep 17 00:00:00 2001 From: Harry Bomrah Date: Tue, 12 Apr 2016 15:59:50 +0800 Subject: [PATCH] small fix --- 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 54a3aef..7c09a00 100644 --- a/app/controllers/announcements_controller.rb +++ b/app/controllers/announcements_controller.rb @@ -106,8 +106,8 @@ class AnnouncementsController < ApplicationController links = fa["bulletin_links"].map{|link| { "link_url" => link["url"], "link_title" => (link["title_translations"][locale].blank? ? link["url"] : link["title_translations"][locale]) } } rescue [] x = { - "bulletin_links" => fa["bulletin_links"], - "bulletin_files" => fa["bulletin_files"], + "bulletin_links" => links, + "bulletin_files" => files, "title" => fa["title_translations"][locale], "subtitle" => fa["subtitle_translations"][locale], "statuses" => [status],