From d60af8649135751615e202b3e8a4acd2f61e7a71 Mon Sep 17 00:00:00 2001 From: mjansen Date: Wed, 18 Dec 2024 13:21:48 +0100 Subject: [PATCH] Badges: Fix missing table id and sorting issues --- .../Badge/classes/class.ilBadgeImageTemplateTableGUI.php | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/components/ILIAS/Badge/classes/class.ilBadgeImageTemplateTableGUI.php b/components/ILIAS/Badge/classes/class.ilBadgeImageTemplateTableGUI.php index 71e622a7f6d8..131061dac00f 100755 --- a/components/ILIAS/Badge/classes/class.ilBadgeImageTemplateTableGUI.php +++ b/components/ILIAS/Badge/classes/class.ilBadgeImageTemplateTableGUI.php @@ -72,7 +72,7 @@ public function __construct( /** * @return list */ - private function getBadgeImageTemplates(Container $DIC): array + private function getBadgeImageTemplates(): array { $modal_container = new ModalBuilder(); $rows = []; @@ -88,7 +88,7 @@ private function getBadgeImageTemplates(Container $DIC): array $badge_template_image, $template->getTitle() ); - $image_html = $DIC->ui()->renderer()->render($image_component); + $image_html = $this->ui_renderer->render($image_component); $badge_template_image_large = $template->getImageFromResourceId( $template->getImageRid(), @@ -146,9 +146,7 @@ public function getTotalRowCount( */ private function getRecords(Range $range = null, Order $order = null): array { - global $DIC; - - $rows = $this->getBadgeImageTemplates($DIC); + $rows = $this->getBadgeImageTemplates(); if ($order) { [$order_field, $order_direction] = $order->join(