Skip to content

Commit

Permalink
Merge pull request #4622 from lscharmer/hotfix/sahs-iframe-favorites
Browse files Browse the repository at this point in the history
Dashboard: Take SAHS display options into account
  • Loading branch information
iszmais authored Jun 3, 2022
2 parents 3a98263 + 8e4fb17 commit 0cd7d9f
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 @@ -3793,7 +3793,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 0cd7d9f

Please sign in to comment.