fix export excel bug caused by related to more than one members

This commit is contained in:
BOHUNG 2020-02-24 14:20:54 +08:00
parent d9d37e847b
commit 29842e66ac
1 changed files with 1 additions and 1 deletions

View File

@ -60,7 +60,7 @@ wb = xlsx_package.workbook
sheet.add_row row, :style => heading
data.each do |jp|
row = [jp.member_profile.name]
row = [(jp.member_profile_id.class == Array ? jp.member_profile_id.map{|member_id| MemberProfile.find(member_id).name rescue ""} : [jp.member_profile.name])]
@site_in_use_locales.each do |locale|
row << jp.paper_title_translations[locale.to_s]
end