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

This commit is contained in:
BOHUNG 2020-02-24 14:29:39 +08:00
parent 7d364eb06e
commit 879d849f87
1 changed files with 1 additions and 1 deletions

View File

@ -46,7 +46,7 @@ wb = xlsx_package.workbook
data.each do |proj|
row = [proj.member_profile.name]
row = [(proj.member_profile_id.class == Array ? proj.member_profile_id.map{|member_id| MemberProfile.find(member_id).name rescue ""} : [proj.member_profile.name])]
@site_in_use_locales.each do |locale|
row << proj.project_title_translations[locale.to_s]
end