Skip to content

Commit 4e43823

Browse files
lukas-heinrichthojou
authored andcommitted
fix(46713): recalculate and store maximum points after question cloning
1 parent b0b1b65 commit 4e43823

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

components/ILIAS/TestQuestionPool/classes/class.assClozeTest.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -791,7 +791,12 @@ public function cloneQuestionTypeSpecificProperties(
791791
$target->getId(),
792792
$this->gap_combinations,
793793
);
794+
795+
// Mantis 46713: The maximum points may have changed due to the combinations,
796+
// so the question must be saved again
797+
$target->saveToDb();
794798
}
799+
795800
return $target;
796801
}
797802

0 commit comments

Comments
 (0)