Skip to content

Commit b3f9f06

Browse files
Only take the first 32 characters of the organization for shortname since otherwise it might be too big
1 parent c03867c commit b3f9f06

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

webapp/src/Service/ExternalContestSourceService.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1103,7 +1103,7 @@ protected function validateAndUpdateTeam(Event $event, EventData $data): void
11031103
// Affiliation does not exist. Create one with a dummy name so we can continue.
11041104
$affiliation = new TeamAffiliation();
11051105
$affiliation->setName($data->organizationId);
1106-
$affiliation->setShortname($data->organizationId);
1106+
$affiliation->setShortname(substr($data->organizationId, 0, 32));
11071107
$this->em->persist($affiliation);
11081108
}
11091109
$team->setAffiliation($affiliation);

0 commit comments

Comments
 (0)