From 27c2ca95d6606aa044b757a52fc88b48def43812 Mon Sep 17 00:00:00 2001 From: Severin Beutler <58948651+lorenzgith@users.noreply.github.com> Date: Thu, 8 Oct 2026 14:43:17 +0200 Subject: [PATCH] 48479 - Rescore the question, not the gap index addAnswer() passed $question_index - the sub-question index, for a cloze question the gap - to recalculateSolutions(), which expects a question id. Until 10.11 the filter in TestScoring was an OR whose first operand was true for any non-zero value, so everything was recalculated anyway. With the equality check introduced in 10.12 nothing matches and no participant is rescored. --- components/ILIAS/Test/classes/class.ilTestCorrectionsGUI.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/ILIAS/Test/classes/class.ilTestCorrectionsGUI.php b/components/ILIAS/Test/classes/class.ilTestCorrectionsGUI.php index 67998e5ad160..6ec7f8b867a0 100755 --- a/components/ILIAS/Test/classes/class.ilTestCorrectionsGUI.php +++ b/components/ILIAS/Test/classes/class.ilTestCorrectionsGUI.php @@ -293,7 +293,7 @@ protected function addAnswer() $this->test_obj, $this->scorer, $this->database - ))->recalculateSolutions(true, $question_index); + ))->recalculateSolutions(true, $question->getId()); if ($this->logger->isLoggingEnabled()) { $this->logger->logQuestionAdministrationInteraction(