From bc39a4cef94d9bb4d7c064b7a0477658eea94b7a Mon Sep 17 00:00:00 2001 From: Lukas Eichenauer Date: Wed, 1 Apr 2026 16:29:54 +0200 Subject: [PATCH] fix(46713): recalculate and store maximum points after question cloning --- .../ILIAS/TestQuestionPool/classes/class.assClozeTest.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/components/ILIAS/TestQuestionPool/classes/class.assClozeTest.php b/components/ILIAS/TestQuestionPool/classes/class.assClozeTest.php index fa6520069c81..34adaf3e51e6 100755 --- a/components/ILIAS/TestQuestionPool/classes/class.assClozeTest.php +++ b/components/ILIAS/TestQuestionPool/classes/class.assClozeTest.php @@ -791,7 +791,12 @@ public function cloneQuestionTypeSpecificProperties( $target->getId(), $this->gap_combinations, ); + + // Mantis 46713: The maximum points may have changed due to the combinations, + // so the question must be saved again + $target->saveToDb(); } + return $target; }