From bae046facd4073dc49086490c043da50c6da514c Mon Sep 17 00:00:00 2001 From: Lukas Eichenauer Date: Mon, 11 May 2026 10:26:47 +0200 Subject: [PATCH] Object: Custom command modals are not available for item groups See: https://mantis.ilias.de/view.php?id=47771 --- .../ILIAS/Container/Content/class.ilContainerRenderer.php | 1 + .../ILIAS/ILIASObject/classes/class.ilObjectListGUI.php | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/components/ILIAS/Container/Content/class.ilContainerRenderer.php b/components/ILIAS/Container/Content/class.ilContainerRenderer.php index d11dd19b9120..da230153eb48 100755 --- a/components/ILIAS/Container/Content/class.ilContainerRenderer.php +++ b/components/ILIAS/Container/Content/class.ilContainerRenderer.php @@ -1181,6 +1181,7 @@ protected function addItemGroupBlock(string $block_id, int $block_pos = 0): void $item_data["description"] ); $commands_html = $item_list_gui->getCommandsHTML(); + $commands_html .= $item_list_gui->getCustomModalsHTML(); // determine behaviour $item_group = new ilObjItemGroup($item_data["ref_id"]); diff --git a/components/ILIAS/ILIASObject/classes/class.ilObjectListGUI.php b/components/ILIAS/ILIASObject/classes/class.ilObjectListGUI.php index 2685cce1daea..102cde0b0646 100755 --- a/components/ILIAS/ILIASObject/classes/class.ilObjectListGUI.php +++ b/components/ILIAS/ILIASObject/classes/class.ilObjectListGUI.php @@ -2887,6 +2887,11 @@ public function getCommandsHTML(string $title = ''): string return $this->ui->renderer()->render($this->getCommandsDropdown($title, false)); } + public function getCustomModalsHTML(): string + { + return $this->ui->renderer()->render($this->cust_modals); + } + private function getCommandsDropdown(string $title, bool $for_header = false): StandardDropdown { $this->populateCommands($for_header);