From e59dd4fe1341bff65a1e41d693c3dac4109634ab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Mike=C5=A1?= Date: Sun, 18 Jan 2026 23:15:40 +0100 Subject: [PATCH] Unboxed fix --- src/Controller/EditTimeController.php | 1 + src/FormType/EditPuzzleSolvingTimeFormType.php | 6 ++++++ 2 files changed, 7 insertions(+) diff --git a/src/Controller/EditTimeController.php b/src/Controller/EditTimeController.php index a9103f40..c7bcfdc2 100644 --- a/src/Controller/EditTimeController.php +++ b/src/Controller/EditTimeController.php @@ -81,6 +81,7 @@ public function __invoke(Request $request, #[CurrentUser] User $user, string $ti $data->puzzle = $solvedPuzzle->puzzleId; $data->brand = $solvedPuzzle->manufacturerId; $data->firstAttempt = $solvedPuzzle->firstAttempt; + $data->unboxed = $solvedPuzzle->unboxed; $data->competition = $solvedPuzzle->competitionId; $groupPlayers = []; diff --git a/src/FormType/EditPuzzleSolvingTimeFormType.php b/src/FormType/EditPuzzleSolvingTimeFormType.php index 214de3d4..3c2dfca0 100644 --- a/src/FormType/EditPuzzleSolvingTimeFormType.php +++ b/src/FormType/EditPuzzleSolvingTimeFormType.php @@ -115,6 +115,12 @@ public function buildForm(FormBuilderInterface $builder, array $options): void 'help' => 'forms.first_attempt_help', ]); + $builder->add('unboxed', CheckboxType::class, [ + 'label' => 'forms.unboxed', + 'required' => false, + 'help' => 'forms.unboxed_help', + ]); + $builder->add('puzzle', TextType::class, [ 'label' => 'forms.puzzle', 'help' => 'forms.puzzle_help',