From 017c357179cf8e5b635493a848889f3c42f5a430 Mon Sep 17 00:00:00 2001 From: Bohung Date: Thu, 16 Dec 2021 10:39:06 +0800 Subject: [PATCH] Fix bug. --- app/helpers/admin/personal_books_helper.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/helpers/admin/personal_books_helper.rb b/app/helpers/admin/personal_books_helper.rb index 12e1111..a4ded12 100644 --- a/app/helpers/admin/personal_books_helper.rb +++ b/app/helpers/admin/personal_books_helper.rb @@ -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| "#{member.name}"}.join('/')