From 2bce6fabf7a9e3954b55ba21f2c8fa464e7b3d54 Mon Sep 17 00:00:00 2001 From: Matheus Zych Date: Mon, 2 Nov 2026 12:11:52 +0100 Subject: [PATCH] Test: Fix Manual Scoring Filter Toggle-On See: https://mantis.ilias.de/view.php?id=48404 Toggling the Manual Scoring by question filter back on triggered a Whoops error because required select inputs had no default value. The disabled placeholder option was omitted from the GET request, filter validation failed, and `ilUIFilterService` iterated over null from `getData()`. Set default `withValue(0)` on the "only answered" and "finalized" filter selects so values are always submitted and match the previous no-filter behaviour. --- .../ILIAS/Test/src/Scoring/Manual/ScoringByQuestionTable.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/components/ILIAS/Test/src/Scoring/Manual/ScoringByQuestionTable.php b/components/ILIAS/Test/src/Scoring/Manual/ScoringByQuestionTable.php index 001585f326ad..92d34e5a135f 100644 --- a/components/ILIAS/Test/src/Scoring/Manual/ScoringByQuestionTable.php +++ b/components/ILIAS/Test/src/Scoring/Manual/ScoringByQuestionTable.php @@ -131,7 +131,8 @@ private function getFilter( 0 => $this->lng->txt('no'), 1 => $this->lng->txt('yes') ] - )->withRequired(true), + )->withRequired(true) + ->withValue(0), self::COLUMN_FINALIZED => $field_factory->select( $this->lng->txt('finalized_evaluation'), [ @@ -140,6 +141,7 @@ private function getFilter( 2 => $this->lng->txt('not_evaluated_users') ] )->withRequired(true) + ->withValue(0) ]; $active = array_fill(0, count($filter_inputs), true);