From 56ec8fb516437ea84b01d8c4a56cc790f764ea21 Mon Sep 17 00:00:00 2001 From: Julie Lenaerts Date: Wed, 6 Aug 2025 09:05:39 +0200 Subject: [PATCH] Remove 'to_validate' as default for task filter --- src/Bundle/ChillTaskBundle/Controller/SingleTaskController.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/Bundle/ChillTaskBundle/Controller/SingleTaskController.php b/src/Bundle/ChillTaskBundle/Controller/SingleTaskController.php index 152184570..debf0f1be 100644 --- a/src/Bundle/ChillTaskBundle/Controller/SingleTaskController.php +++ b/src/Bundle/ChillTaskBundle/Controller/SingleTaskController.php @@ -624,8 +624,7 @@ final class SingleTaskController extends AbstractController ->addCheckbox('status', $statuses, $statuses, $statusTrans); $states = $this->singleTaskStateRepository->findAllExistingStates(); - $checked = array_values(array_filter($states, fn (string $state) => !in_array($state, ['in_progress', 'closed', 'canceled', 'validated'], true))); - + $checked = array_values(array_filter($states, fn (string $state) => !in_array($state, ['to_validate', 'in_progress', 'closed', 'canceled', 'validated'], true))); if ([] !== $states) { $filterBuilder ->addCheckbox('states', $states, $checked);