forked from saurabh/personal-journal
fix export excel bug caused by related to more than one members
This commit is contained in:
parent
d9d37e847b
commit
29842e66ac
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue