To receive notifications about scheduled maintenance, please subscribe to the mailing-list gitlab-operations@sympa.ethz.ch. You can subscribe to the mailing-list at https://sympa.ethz.ch

Fix CSV export when there are no additional fields

parent ec842a8f
......@@ -99,14 +99,14 @@ class ParticipantsTable {
item.email,
item.accepted,
item.confirmed,
...Object.keys(this.add_fields_schema).map(key =>
...Object.keys(this.add_fields_schema || {}).map(key =>
(additionalFields && additionalFields[key] ? additionalFields[key] : '')),
].join(',');
})).join('\n');
const header = [
'Position', 'Date', 'Firstname', 'Lastname', 'Membership', 'Email', 'Accepted', 'Confirmed',
...Object.keys(this.add_fields_schema).map(key => this.add_fields_schema[key].title),
...Object.keys(this.add_fields_schema || {}).map(key => this.add_fields_schema[key].title),
].join(',');
const filename = `${filePrefix}_participants_export.csv`;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment