Skip to content

Commit 22059dc

Browse files
committed
[FIX] #47323 LTI: Correct order of params in table
This solves the crash caused by changing the order of parameters when building a table inherited from the ILIAS11 version. This error was corrected some time ago for that version (release_11), but the fix was not correctly applied to the trunk branch.
1 parent 3e268e5 commit 22059dc

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

components/ILIAS/LTIConsumer/classes/class.ilLTIConsumerGradeSynchronizationTableGUI.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ protected function applyOrdering(array $records, Order $order): array
122122
public function getHTML(): string
123123
{
124124
$table = $this->ui_factory->table()
125-
->data("", $this->getColumns(), $this)
125+
->data($this, "", $this->getColumns())
126126
->withOrder(new Order("lti_timestamp", Order::DESC))
127127
->withRequest($this->request);
128128

components/ILIAS/LTIConsumer/classes/class.ilLTIConsumerProviderTableGUI.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ protected function applyOrdering(array $records, Order $order): array
170170
public function getHTML(bool $hasWriteAccess = false): string
171171
{
172172
$table = $this->ui_factory->table()
173-
->data($this->lng->txt('tbl_provider_header'), $this->getColumns(), $this)
173+
->data($this, $this->lng->txt('tbl_provider_header'), $this->getColumns())
174174
->withOrder(new Order('title', Order::ASC))
175175
->withRequest($this->request);
176176

components/ILIAS/LTIConsumer/classes/class.ilLTIConsumerProviderUsageTableGUI.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ protected function applyOrdering(array $records, Order $order): array
122122
public function getHTML(): string
123123
{
124124
$table = $this->ui_factory->table()
125-
->data($this->lng->txt('tbl_provider_usage_header'), $this->getColumns(), $this)
125+
->data($this, $this->lng->txt('tbl_provider_usage_header'), $this->getColumns())
126126
->withOrder(new Order('title', Order::ASC))
127127
->withRequest($this->request);
128128

components/ILIAS/LTIProvider/classes/Consumer/class.ilObjectConsumerTableGUI.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ public function getTotalRowCount(
219219
public function getHtml(): string
220220
{
221221
$table = $this->ui_factory->table()
222-
->data($this->lng->txt('lti_object_consumer'), $this->getColumns(), $this)
222+
->data($this, $this->lng->txt('lti_object_consumer'), $this->getColumns())
223223
->withOrder(new Order('title', Order::ASC))
224224
->withActions($this->getActions())
225225
->withRequest($this->request);

components/ILIAS/LTIProvider/classes/InternalProvider/class.ilLTIProviderReleasedObjectsTableGUI.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ public function getTotalRowCount(
148148
public function getHtml(): string
149149
{
150150
$table = $this->ui_factory->table()
151-
->data($this->lng->txt('lti_released_objects'), $this->getColumns(), $this)
151+
->data($this, $this->lng->txt('lti_released_objects'), $this->getColumns())
152152
->withOrder(new Order('title', Order::ASC))
153153
->withRequest($this->request);
154154

0 commit comments

Comments
 (0)