From 9b5fa52f6d7980d5ee2a4a926da4318538b7578d Mon Sep 17 00:00:00 2001 From: chiu Date: Wed, 4 Mar 2020 10:21:42 +0800 Subject: [PATCH] fix error --- 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 b447238..50e45a6 100644 --- a/app/helpers/admin/journal_papers_helper.rb +++ b/app/helpers/admin/journal_papers_helper.rb @@ -6,7 +6,7 @@ module Admin::JournalPapersHelper (journal.authors.to_s.blank? ? get_member_show(journal) : (journal.authors.to_s) rescue "") end def get_member(journal) - Array(MemberProfile.find(Array(journal).collect(&:member_profile_id))) + Array(MemberProfile.find(Array(journal).collect(&:member_profile_id))) rescue [] end def get_member_show(journal) get_member(journal).collect{|member| "#{member.name}"}.join('/')