From e9feed00baf2fbb2d464f14bae99a4ef03f3e4e2 Mon Sep 17 00:00:00 2001 From: chiu Date: Sat, 2 Nov 2019 11:40:47 +0800 Subject: [PATCH] Update journal_papers_helper.rb --- app/helpers/admin/journal_papers_helper.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/helpers/admin/journal_papers_helper.rb b/app/helpers/admin/journal_papers_helper.rb index bd97350..d0da58c 100644 --- a/app/helpers/admin/journal_papers_helper.rb +++ b/app/helpers/admin/journal_papers_helper.rb @@ -3,7 +3,7 @@ module Admin::JournalPapersHelper journal.authors.to_s.blank? ? get_member(journal).join('/') : Nokogiri::HTML(journal.authors.to_s).text end def get_authors_show(journal) - journal.authors.to_s.blank? ? get_member(journal).join('/') : (journal.authors.to_s) + journal.authors.to_s.blank? ? get_member(journal).collect(&:name).join('/') : (journal.authors.to_s) end def get_member(journal) Array(MemberProfile.find(Array(journal).collect(&:member_profile_id)))