From 1cc9dc4e62717f9a8824053d7be2229bd2eafcca Mon Sep 17 00:00:00 2001 From: Tim Schmitz Date: Mon, 18 May 2026 09:59:40 +0200 Subject: [PATCH] Container: fix download link when downloading multiple objects (47798) --- .../ILIAS/Container/classes/class.ilContainerGUI.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/components/ILIAS/Container/classes/class.ilContainerGUI.php b/components/ILIAS/Container/classes/class.ilContainerGUI.php index 414b9bf2d73a..dacd8e29a7d4 100755 --- a/components/ILIAS/Container/classes/class.ilContainerGUI.php +++ b/components/ILIAS/Container/classes/class.ilContainerGUI.php @@ -601,19 +601,19 @@ public function showAdministrationPanel(): void $num_files = $this->tree->getChildsByType($ref_id, "file"); $num_folders = $this->tree->getChildsByType($ref_id, "fold"); if (count($num_files) > 0 || count($num_folders) > 0) { - // #11843 - $GLOBALS['tpl']->setPageFormAction($this->ctrl->getFormAction($this)); - $toolbar = new ilToolbarGUI(); $this->ctrl->setParameter($this, "type", ""); $this->ctrl->setParameter($this, "item_ref_id", ""); + // #11843 + $main_tpl->setPageFormAction($this->ctrl->getFormAction($this)); + $toolbar->addFormButton( $this->lng->txt('download_selected_items'), 'download' ); - $GLOBALS['tpl']->addAdminPanelToolbar( + $main_tpl->addAdminPanelToolbar( $toolbar, $this->gotItems(), $this->gotItems()