From 018b39dbc4708fbd87bbaf9c1cd07457c94060e2 Mon Sep 17 00:00:00 2001 From: Nicky Gerritsen Date: Mon, 17 Nov 2025 13:16:24 +0100 Subject: [PATCH] Fall back to external ID when exporting results --- webapp/src/Service/ImportExportService.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/webapp/src/Service/ImportExportService.php b/webapp/src/Service/ImportExportService.php index 2b2dcc217b..b6e4c21812 100644 --- a/webapp/src/Service/ImportExportService.php +++ b/webapp/src/Service/ImportExportService.php @@ -612,7 +612,7 @@ public function getResultsData( // Teams with 0 points won't get a medal, a rank or an honor. // They will always get an honorable mention. $data[] = new ResultRow( - $teamScore->team->getIcpcId(), + $teamScore->team->getIcpcId() ?? $teamScore->team->getExternalid(), null, 'Honorable', $teamScore->numPoints, @@ -667,7 +667,7 @@ public function getResultsData( } $data[] = new ResultRow( - $teamScore->team->getIcpcId(), + $teamScore->team->getIcpcId() ?? $teamScore->team->getExternalid(), $rank, $awardString, $teamScore->numPoints,