This commit is contained in:
BoHung Chiu 2021-04-27 16:19:26 +08:00
parent 53d9fadabf
commit f757fd01f7
1 changed files with 2 additions and 2 deletions

View File

@ -35,7 +35,7 @@ module NtnuSyncPlugin
if invalid_apa_title.include? apa_title
jp.delete
jp = JournalPaper.new
jp.paper_title_translations = { 'zh_tw' => apa_title, 'en' => apa_title }
jp.paper_title_translations = { 'zh_tw' => nil, 'en' => nil }
jp.year = publication_year
end
@ -98,7 +98,7 @@ module NtnuSyncPlugin
if invalid_apa_title.include? apa_title
wc.delete
wc = WritingConference.new
wc.paper_title_translations = { 'zh_tw' => apa_title, 'en' => apa_title }
wc.paper_title_translations = { 'zh_tw' => nil, 'en' => nil }
end
wc.member_profile_id = user.member_profile_id