Skip to content

Commit

Permalink
Only take the first 32 characters of the organization for shortname s…
Browse files Browse the repository at this point in the history
…ince otherwise it might be too big
  • Loading branch information
nickygerritsen committed Nov 12, 2024
1 parent c03867c commit b3f9f06
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion webapp/src/Service/ExternalContestSourceService.php
Original file line number Diff line number Diff line change
Expand Up @@ -1103,7 +1103,7 @@ protected function validateAndUpdateTeam(Event $event, EventData $data): void
// Affiliation does not exist. Create one with a dummy name so we can continue.
$affiliation = new TeamAffiliation();
$affiliation->setName($data->organizationId);
$affiliation->setShortname($data->organizationId);
$affiliation->setShortname(substr($data->organizationId, 0, 32));
$this->em->persist($affiliation);
}
$team->setAffiliation($affiliation);
Expand Down

0 comments on commit b3f9f06

Please sign in to comment.