From 46aea36a7c8cb675245dcf0b45ebadbf03053f90 Mon Sep 17 00:00:00 2001 From: Michael Vasseur <14887731+vmcj@users.noreply.github.com> Date: Sat, 11 Nov 2023 00:35:39 +0100 Subject: [PATCH] Use public_description field for teams Fallback to legacy members attribute fixes https://github.com/DOMjudge/domjudge/issues/2185 --- webapp/src/Service/ImportExportService.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webapp/src/Service/ImportExportService.php b/webapp/src/Service/ImportExportService.php index a642bbf883..5e4a8f1055 100644 --- a/webapp/src/Service/ImportExportService.php +++ b/webapp/src/Service/ImportExportService.php @@ -838,7 +838,7 @@ public function importTeamsJson(array $data, ?string &$message = null, ?array &$ 'categoryid' => $team['group_ids'][0] ?? null, 'name' => @$team['name'], 'display_name' => @$team['display_name'], - 'publicdescription' => @$team['members'], + 'publicdescription' => $team['public_description'] ?? @$team['members'], 'room' => @$team['room'], ], 'team_affiliation' => [