Skip to content

Commit

Permalink
attempts to fix redirect when clicking on a favorite test in the dash…
Browse files Browse the repository at this point in the history
…board
FBartz28 authored and thojou committed Dec 12, 2024
1 parent 07ad838 commit 58a080b
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Modules/Test/classes/class.ilObjTestAccess.php
Original file line number Diff line number Diff line change
@@ -365,7 +365,7 @@ public static function _getCommands(): array
$commands = [
["permission" => "write", "cmd" => "questionsTabGateway", "lang_var" => "tst_edit_questions"],
["permission" => "write", "cmd" => "ilObjTestSettingsMainGUI::showForm", "lang_var" => "settings"],
["permission" => "read", "cmd" => "testScreen", "lang_var" => "tst_run", "default" => true],
["permission" => "read", "cmd" => "ilTestScreenGUI::testScreen", "lang_var" => "tst_run", "default" => true],
["permission" => "tst_statistics", "cmd" => "outEvaluation", "lang_var" => "tst_statistical_evaluation"],
["permission" => "read", "cmd" => "userResultsGateway", "lang_var" => "tst_user_results"],
["permission" => "write", "cmd" => "testResultsGateway", "lang_var" => "results"],
2 changes: 1 addition & 1 deletion Modules/Test/classes/class.ilObjTestListGUI.php
Original file line number Diff line number Diff line change
@@ -142,7 +142,7 @@ public function getCommands(): array
{
$commands = parent::getCommands();
if ($this->access->checkAccess('read', '', $this->ref_id)) {
$this->insertCommand($this->getCommandLink('testScreen'), $this->lng->txt('tst_start_test'));
$this->insertCommand($this->getCommandLink('ilTestScreenGUI::testScreen'), $this->lng->txt('tst_start_test'));
}
return $this->handleUserResultsCommand($commands);
}

0 comments on commit 58a080b

Please sign in to comment.