Skip to content

Commit

Permalink
Merge pull request #4632 from iszmais/hotfix/sahs-iframe-favorites6
Browse files Browse the repository at this point in the history
Dashboard: Take SAHS display options into account for ILIAS6
  • Loading branch information
iszmais authored Jun 3, 2022
2 parents a9b7c42 + 6f70802 commit f00f48d
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion Services/Object/classes/class.ilObjectListGUI.php
Original file line number Diff line number Diff line change
Expand Up @@ -3791,7 +3791,13 @@ public function getAsListItem(


if ($def_command['link']) {
$list_item = $ui->factory()->item()->standard($this->ui->factory()->link()->standard($this->getTitle(), $def_command['link']));
$def_command['link'] = $this->modifySAHSlaunch($def_command['link'], $def_command['frame']);
$new_viewport = (bool) $this->getDefaultCommand()['frame']; // Cannot use $def_command['frame']. $this->default_command has been edited.
$link = $this->ui->factory()
->link()
->standard($this->getTitle(), $def_command['link'])
->withOpenInNewViewport($new_viewport);
$list_item = $ui->factory()->item()->standard($link);
} else {
$list_item = $ui->factory()->item()->standard($this->getTitle());
}
Expand Down

0 comments on commit f00f48d

Please sign in to comment.