fix export excel bug caused by related to more than one members.
This commit is contained in:
parent
7d364eb06e
commit
879d849f87
|
@ -46,7 +46,7 @@ wb = xlsx_package.workbook
|
||||||
|
|
||||||
|
|
||||||
data.each do |proj|
|
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|
|
@site_in_use_locales.each do |locale|
|
||||||
row << proj.project_title_translations[locale.to_s]
|
row << proj.project_title_translations[locale.to_s]
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue