From aaff07e48b56b047fe92db4af02c11e6fa2d4eb4 Mon Sep 17 00:00:00 2001 From: Henne Vogelsang Date: Tue, 10 Jun 2025 12:21:56 +0200 Subject: [PATCH] Put the ticket token into the registration export --- app/views/admin/registrations/index.xlsx.axlsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/views/admin/registrations/index.xlsx.axlsx b/app/views/admin/registrations/index.xlsx.axlsx index a95c163e..596d9fd2 100644 --- a/app/views/admin/registrations/index.xlsx.axlsx +++ b/app/views/admin/registrations/index.xlsx.axlsx @@ -3,7 +3,7 @@ wb = xlsx_package.workbook wb.add_worksheet(name: 'registrations') do |sheet| bold_style = wb.styles.add_style(b: true) - row = ['Attended', 'Name', 'Nickname', 'Affilιation', 'Email'] + row = ['Attended', 'Name', 'Nickname', 'Affilιation', 'Email', 'Ticket Token'] @conference.questions.each do |question| row << question.title @@ -18,6 +18,7 @@ wb.add_worksheet(name: 'registrations') do |sheet| row << registration.nickname row << registration.affiliation row << registration.email + row << registration.user.physical_tickets.by_conference(@conference).first&.token @conference.questions.each do |question| qa = registration.qanswers.find_by(question: question) answer = ( qa ? qa.answer.title : '' )