Fix bug.
This commit is contained in:
parent
f6dc36e194
commit
0132cb6cde
|
@ -58,6 +58,10 @@ module AsiaSyncPlugin
|
|||
return if journal_papers.count == 0
|
||||
journal_papers.each do |journal_paper|
|
||||
jp = JournalPaper.where(:rss2_id=> journal_paper["ukey"]).first
|
||||
if jp && jp.member_profile_id.class != Array
|
||||
JournalPaper.where(:id=>jp.id).update_all(:member_profile_id=> [member.id])
|
||||
jp = jp.reload
|
||||
end
|
||||
jp = JournalPaper.new if jp.nil?
|
||||
jp.rss2_id = journal_paper["ukey"]
|
||||
jp.paper_title_translations = localize_data(journal_paper["Thesis_name"])
|
||||
|
|
Loading…
Reference in New Issue