forked from saurabh/personal-book
Fix bug.
This commit is contained in:
parent
38e3b5fb77
commit
017c357179
|
@ -27,7 +27,7 @@ module Admin::PersonalBooksHelper
|
||||||
full_authors.join(split_text)
|
full_authors.join(split_text)
|
||||||
end
|
end
|
||||||
def get_member(book)
|
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
|
end
|
||||||
def get_member_show(book)
|
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('/')
|
get_member(book).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