From b6c87261919b2f25afe3f322bfe1c98aec3aa7eb Mon Sep 17 00:00:00 2001 From: chiu Date: Fri, 1 Nov 2019 21:59:44 +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 c053400..3291ec3 100644 --- a/app/helpers/admin/journal_papers_helper.rb +++ b/app/helpers/admin/journal_papers_helper.rb @@ -1,6 +1,6 @@ module Admin::JournalPapersHelper def get_member(journal) - Array(MemberProfile.find(journal.member_profile_id)) + Array(MemberProfile.find(journal.collect(&:member_profile_id))) end def get_level_type(journal) !journal.journal_levels.blank? ? "(#{journal.journal_levels.collect(&:title).join(', ')})" : nil