Skip to content

Commit

Permalink
Test: Redirect For LOC in Course not Repository
Browse files Browse the repository at this point in the history
  • Loading branch information
kergomard committed Jan 3, 2025
1 parent 9f91a65 commit 8af55e0
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions components/ILIAS/Test/classes/class.ilObjTestListGUI.php
Original file line number Diff line number Diff line change
Expand Up @@ -225,10 +225,9 @@ protected function modifyTitleLink(string $default_link): string
}
}

$this->ctrl->setParameterByClass("ilrepositorygui", 'ref_id', $parent_crs_ref_id);
$this->ctrl->setParameterByClass("ilrepositorygui", 'tid', $this->ref_id);
$cmd_link = $this->ctrl->getLinkTargetByClass("ilrepositorygui", 'redirectLocToTest');
$this->ctrl->setParameterByClass("ilrepositorygui", "ref_id", $this->ref_id);
$this->ctrl->setParameterByClass(ilObjCourseGUI::class, 'ref_id', $parent_crs_ref_id);
$this->ctrl->setParameterByClass(ilObjCourseGUI::class, 'tid', $this->ref_id);
$cmd_link = $this->ctrl->getLinkTargetByClass([ilRepositoryGUI::class, ilObjCourseGUI::class], 'redirectLocToTest');
$this->ctrl->clearParametersByClass('ilrepositorygui');

return parent::modifyTitleLink($cmd_link);
Expand Down

0 comments on commit 8af55e0

Please sign in to comment.