Skip to content

Commit

Permalink
Alternative solution for Test Results in Points now showing correct v…
Browse files Browse the repository at this point in the history
…alue for current test pass (ILIAS-eLearning#7322)
  • Loading branch information
matheuszych authored and mbecker-databay committed Apr 26, 2024
1 parent 0d434ad commit 1c01e6a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Modules/Test/classes/class.ilTestEvaluationGUI.php
Original file line number Diff line number Diff line change
Expand Up @@ -978,6 +978,7 @@ public function outParticipantsPassDetails()
$template->setVariable("PASS_DETAILS", $this->ctrl->getHTML($overviewTableGUI));

$data = $this->object->getCompleteEvaluationData();
$data->getParticipant($active_id)->setPassScoring($pass);
$result = $data->getParticipant($active_id)->getReached() . " " . strtolower($this->lng->txt("of")) . " " . $data->getParticipant($active_id)->getMaxpoints() . " (" . sprintf("%2.2f", $data->getParticipant($active_id)->getReachedPointsInPercent()) . " %" . ")";
$template->setCurrentBlock('total_score');
$template->setVariable("TOTAL_RESULT_TEXT", $this->lng->txt('tst_stat_result_resultspoints'));
Expand Down

0 comments on commit 1c01e6a

Please sign in to comment.