forked from saurabh/personal-journal
fix error
This commit is contained in:
parent
29842e66ac
commit
9b5fa52f6d
|
@ -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('/')
|
||||
|
|
Loading…
Reference in New Issue