This commit is contained in:
BoHung Chiu 2021-12-16 10:39:06 +08:00
parent 38e3b5fb77
commit 017c357179
1 changed files with 1 additions and 1 deletions

View File

@ -27,7 +27,7 @@ module Admin::PersonalBooksHelper
full_authors.join(split_text)
end
def get_member(book)
Array(MemberProfile.where(:id.in=>Array(book).collect(&:member_profile_id)))
Array(MemberProfile.where(:id.in=>Array(book).collect(&:member_profile_id).flatten))
end
def get_member_show(book)
get_member(book).collect{|member| "<a href='#{OrbitHelper.url_to_plugin_show(member.to_param,'member')}' title='#{member.name}'>#{member.name}</a>"}.join('/')