From 3048e73cc935305638cd7d2d574330864909f6df Mon Sep 17 00:00:00 2001 From: Bohung Date: Fri, 16 Jul 2021 18:42:33 +0800 Subject: [PATCH] Fix import bug. --- app/helpers/admin/announcements_helper.rb | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/app/helpers/admin/announcements_helper.rb b/app/helpers/admin/announcements_helper.rb index b6b90f1..60b9c73 100644 --- a/app/helpers/admin/announcements_helper.rb +++ b/app/helpers/admin/announcements_helper.rb @@ -65,31 +65,31 @@ module Admin::AnnouncementsHelper anns.remote_image_url = val when 8 value["en"] = val - anns.image_description_translations = value + anns.image_description_translations = value.clone when 9 value["zh_tw"] = val - anns.image_description_translations = value + anns.image_description_translations = value.clone value = {} when 10 value["en"] = val - anns.title_translations = value + anns.title_translations = value.clone when 11 value["zh_tw"] = val - anns.title_translations = value + anns.title_translations = value.clone value = {} when 12 value["en"] = val - anns.subtitle_translations = value + anns.subtitle_translations = value.clone when 13 value["zh_tw"] = val - anns.subtitle_translations = value + anns.subtitle_translations = value.clone value = {} when 14 value["en"] = val - anns.text_translations = value + anns.text_translations = value.clone when 15 value["zh_tw"] = val - anns.text_translations = value + anns.text_translations = value.clone value = {} when 16 links = val.split(";") rescue []