Skip to content

Commit

Permalink
Test: Fix Show Best Solution
Browse files Browse the repository at this point in the history
  • Loading branch information
kergomard committed Oct 23, 2024
1 parent bef96d4 commit ef9cde5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion components/ILIAS/Test/classes/class.ilTestEvaluationGUI.php
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,8 @@ protected function setCss(): void

public function showResults()
{
$selected_users = explode(',', $this->testrequest->strVal('q_ids'));
$selected_users = explode(',', $this->testrequest->strVal('active_ids'));
$this->ctrl->saveParameterByClass(self::class, 'active_ids');

$this->addPrintButtonToToolbar();
$this->addToggleBestSolutionButtonToToolbar();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ public function onSubmit(
}
$this->ctrl->setParameterByClass(
\ilTestEvaluationGUI::class,
'q_ids',
'active_ids',
array_reduce(
$selected_participants,
static function (string $c, Participant $v): string {
Expand Down

0 comments on commit ef9cde5

Please sign in to comment.