diff --git a/webapp/src/Controller/Jury/SubmissionController.php b/webapp/src/Controller/Jury/SubmissionController.php index d0f9c473e5..5596af8e48 100644 --- a/webapp/src/Controller/Jury/SubmissionController.php +++ b/webapp/src/Controller/Jury/SubmissionController.php @@ -36,6 +36,7 @@ use Doctrine\ORM\NonUniqueResultException; use Doctrine\ORM\NoResultException; use Doctrine\ORM\Query\Expr\Join; +use Symfony\Bridge\Doctrine\Attribute\MapEntity; use Symfony\Bridge\Doctrine\Form\Type\EntityType; use Symfony\Component\Form\Extension\Core\Type\SubmitType; use Symfony\Component\Form\Extension\Core\Type\TextareaType; @@ -636,8 +637,9 @@ public function requestFullDebug(Request $request, Judging $jid): RedirectRespon } #[Route(path: '/download-full-debug/{debug_package_id}', name: 'download_full_debug')] - public function downloadFullDebug(DebugPackage $debugPackage): StreamedResponse - { + public function downloadFullDebug( + #[MapEntity(id: 'debug_package_id')] DebugPackage $debugPackage + ): StreamedResponse { $name = 'debug_package.j' . $debugPackage->getJudging()->getJudgingid() . '.db' . $debugPackage->getDebugPackageId() . '.jh' . $debugPackage->getJudgehost()->getJudgehostid()