From e6f8b09a81a02fa102427b55111f0af213aff234 Mon Sep 17 00:00:00 2001 From: Hieu Lam - TMA <135117837+lthanhhieu@users.noreply.github.com> Date: Tue, 26 Mar 2024 20:42:13 +0700 Subject: [PATCH] Fix-9127: Add the unique ticket code into the downlad CSV file (#9185) --- app/controllers/events/view/tickets/attendees/list.js | 7 ------- app/routes/events/view/tickets/attendees/list.js | 6 ++++-- 2 files changed, 4 insertions(+), 9 deletions(-) diff --git a/app/controllers/events/view/tickets/attendees/list.js b/app/controllers/events/view/tickets/attendees/list.js index b17ae99d34c..4f595b4ddb2 100644 --- a/app/controllers/events/view/tickets/attendees/list.js +++ b/app/controllers/events/view/tickets/attendees/list.js @@ -42,13 +42,6 @@ export default class extends Controller.extend(EmberTableControllerMixin) { headerComponent : 'tables/headers/sort', isSortable : true }, - { - name : 'Ticket Name', - width : 80, - valuePath : 'ticket.name', - headerComponent : 'tables/headers/sort', - isSortable : true - }, { name : 'Tags', width : 100, diff --git a/app/routes/events/view/tickets/attendees/list.js b/app/routes/events/view/tickets/attendees/list.js index 986db7d680e..2a210efed72 100644 --- a/app/routes/events/view/tickets/attendees/list.js +++ b/app/routes/events/view/tickets/attendees/list.js @@ -122,7 +122,7 @@ export default class extends Route.extend(EmberTableRouteMixin) { let queryString = { - include : 'user,order', + include : 'user,ticket', filter : filterOptions, 'page[size]' : params.per_page, 'page[number]' : params.page || 1 @@ -134,9 +134,11 @@ export default class extends Route.extend(EmberTableRouteMixin) { this.addDefaultValue(tags); } const attendees = await this.asArray(await eventDetails.query('attendees', queryString)); + const orders = await this.asArray(await eventDetails.query('orders', {})); return { tags, - attendees + attendees, + orders }; } }