Skip to content

Commit

Permalink
Get array of testcase groups while editing testcases for a problem
Browse files Browse the repository at this point in the history
Fixes #150
  • Loading branch information
zapotocnylubos committed Aug 25, 2024
1 parent 4ad6ace commit 714fbdc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion webapp/src/Controller/Jury/ProblemController.php
Original file line number Diff line number Diff line change
Expand Up @@ -592,7 +592,7 @@ public function testcasesAction(Request $request, int $probId): Response
$messages[] = sprintf('Updated description of testcase %d ', $rank);
}

$newGroupId = intval($request->request->get('group')[$rank]);
$newGroupId = intval($request->request->all('group')[$rank]);
$oldGroupId = $testcase->getTestcaseGroup() === null ? -1 : $testcase->getTestcaseGroup()->getTestcasegroupid();
if ($oldGroupId !== $newGroupId) {
$newGroup = $newGroupId === -1 ? null : $this->em->getRepository(TestcaseGroup::class)->find($newGroupId);
Expand Down

0 comments on commit 714fbdc

Please sign in to comment.