Fix bug.
This commit is contained in:
parent
53d9fadabf
commit
f757fd01f7
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue