From 1c01e6a8cab59727f488bd6598cc5a4d7dac1dda Mon Sep 17 00:00:00 2001 From: Matheus Zych <37047867+matheuszych@users.noreply.github.com> Date: Fri, 26 Apr 2024 08:21:04 +0200 Subject: [PATCH] Alternative solution for Test Results in Points now showing correct value for current test pass (#7322) --- Modules/Test/classes/class.ilTestEvaluationGUI.php | 1 + 1 file changed, 1 insertion(+) diff --git a/Modules/Test/classes/class.ilTestEvaluationGUI.php b/Modules/Test/classes/class.ilTestEvaluationGUI.php index c9706aaf9215..aaee22c6a77e 100644 --- a/Modules/Test/classes/class.ilTestEvaluationGUI.php +++ b/Modules/Test/classes/class.ilTestEvaluationGUI.php @@ -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'));