Skip to content

Commit

Permalink
Enable medals when setting medal categories.
Browse files Browse the repository at this point in the history
  • Loading branch information
Nicky Gerritsen committed Mar 16, 2024
1 parent f79a7e0 commit e856796
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion webapp/src/Service/ImportExportService.php
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,9 @@ public function importContestData(mixed $data, ?string &$errorMessage = null, st
$contest->setMedalsEnabled(false);
} else {
foreach ($visibleCategories as $visibleCategory) {
$contest->addMedalCategory($visibleCategory);
$contest
->setMedalsEnabled(true)
->addMedalCategory($visibleCategory);
}
}

Expand Down

0 comments on commit e856796

Please sign in to comment.