Fix import bug.

This commit is contained in:
BoHung Chiu 2021-07-16 18:42:33 +08:00
parent d0bb7ee9e7
commit 3048e73cc9
1 changed files with 8 additions and 8 deletions

View File

@ -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 []