fix error

This commit is contained in:
chiu 2020-03-04 10:21:42 +08:00
parent 29842e66ac
commit 9b5fa52f6d
1 changed files with 1 additions and 1 deletions

View File

@ -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| "<a href='#{OrbitHelper.url_to_plugin_show(member.to_param,'member')}' title='#{member.name}'>#{member.name}</a>"}.join('/')