Skip to content

Commit ec356dd

Browse files
Michael Vasseurvmcj
authored andcommitted
Repair downloading of the DebugPackage
We couldn't translate the provided parameter to the existing DebugPackage.
1 parent a806495 commit ec356dd

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

webapp/src/Controller/Jury/SubmissionController.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@
3636
use Doctrine\ORM\NonUniqueResultException;
3737
use Doctrine\ORM\NoResultException;
3838
use Doctrine\ORM\Query\Expr\Join;
39+
use Symfony\Bridge\Doctrine\Attribute\MapEntity;
3940
use Symfony\Bridge\Doctrine\Form\Type\EntityType;
4041
use Symfony\Component\Form\Extension\Core\Type\SubmitType;
4142
use Symfony\Component\Form\Extension\Core\Type\TextareaType;
@@ -639,8 +640,9 @@ public function requestFullDebug(Request $request, Judging $jid): RedirectRespon
639640
}
640641

641642
#[Route(path: '/download-full-debug/{debug_package_id}', name: 'download_full_debug')]
642-
public function downloadFullDebug(DebugPackage $debugPackage): StreamedResponse
643-
{
643+
public function downloadFullDebug(
644+
#[MapEntity(id: 'debug_package_id')] DebugPackage $debugPackage
645+
): StreamedResponse {
644646
$name = 'debug_package.j' . $debugPackage->getJudging()->getJudgingid()
645647
. '.db' . $debugPackage->getDebugPackageId()
646648
. '.jh' . $debugPackage->getJudgehost()->getJudgehostid()

0 commit comments

Comments
 (0)