Skip to content

Commit b63e585

Browse files
committed
Session: #fix Excel export do not put headers in upper case and remove official code column - refs BT#22502
1 parent 04742fa commit b63e585

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

main/inc/lib/sessionmanager.lib.php

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10174,7 +10174,7 @@ public static function exportCourseSessionReport(int $sessionId, string $courseC
1017410174

1017510175
foreach ($sessionFields as $field) {
1017610176
if (isset($extraDefsByVariable[$field])) {
10177-
$header1[] = $extraDefsByVariable[$field]['display_text'] ?? strtoupper($field);
10177+
$header1[] = $extraDefsByVariable[$field]['display_text'] ?? $field;
1017810178
}
1017910179
}
1018010180

@@ -10195,13 +10195,12 @@ public static function exportCourseSessionReport(int $sessionId, string $courseC
1019510195
// 3. USER HEADER
1019610196
$header3 = [''];
1019710197
foreach ($userFieldsBefore as $field) {
10198-
$header3[] = strtoupper($field);
10198+
$header3[] = $field;
1019910199
}
1020010200
$header3[] = get_lang('FirstName');
1020110201
$header3[] = get_lang('LastName');
10202-
$header3[] = get_lang('OfficialCode');
1020310202
foreach ($userFieldsAfter as $field) {
10204-
$header3[] = strtoupper($field);
10203+
$header3[] = $field;
1020510204
}
1020610205

1020710206
// 4. USERS WITH CERTIFICATE
@@ -10243,7 +10242,6 @@ public static function exportCourseSessionReport(int $sessionId, string $courseC
1024310242

1024410243
$row[] = $userInfo['firstname'];
1024510244
$row[] = $userInfo['lastname'];
10246-
$row[] = $userInfo['official_code'] ?? '';
1024710245

1024810246
foreach ($userFieldsAfter as $field) {
1024910247
$value = $userExtraMap[$field] ?? '';

0 commit comments

Comments
 (0)