Skip to content

Commit 9f5fb61

Browse files
committed
Fix: prevent duplication of navigation buttons in ILIAS 9 (refs #45442) (#9891)
1 parent b1e1456 commit 9f5fb61

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

components/ILIAS/LearningModule/Presentation/class.ilLMNavigationRendererGUI.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,8 @@ public function renderBottom(): string
8989

9090
protected function render(bool $top = true): string
9191
{
92+
$this->toolbar->setStickyItems([]);
93+
9294
$page_id = $this->current_page;
9395

9496
$tpl = new ilTemplate("tpl.lm_navigation.html", true, true, "components/ILIAS/LearningModule/Presentation");

components/ILIAS/UIComponent/Toolbar/classes/class.ilToolbarGUI.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -466,6 +466,16 @@ public function setItems(array $items): void
466466
$this->items = $items;
467467
}
468468

469+
public function getStickyItems(): array
470+
{
471+
return $this->sticky_items;
472+
}
473+
474+
public function setStickyItems(array $items): void
475+
{
476+
$this->sticky_items = $items;
477+
}
478+
469479
/**
470480
* If the toolbar consists of only one button, make it sticky
471481
* Note: Atm this is only possible for buttons. If we are dealing with objects implementing the ilToolbarItem

0 commit comments

Comments
 (0)