Skip to content

Commit 2a6556f

Browse files
committed
Enable sorting by ID for templates and template groups
See https://www.woltlab.com/community/thread/314581/
1 parent 33bf232 commit 2a6556f

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

wcfsetup/install/files/lib/system/gridView/admin/TemplateGridView.class.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,8 @@ public function __construct(?int $templateGroupID = null)
5050
$this->addColumns([
5151
GridViewColumn::for("templateID")
5252
->label("wcf.global.objectID")
53-
->renderer(new ObjectIdColumnRenderer()),
53+
->renderer(new ObjectIdColumnRenderer())
54+
->sortable(),
5455
GridViewColumn::for("application")
5556
->label("wcf.acp.template.application")
5657
->filter(new SelectFilter(

wcfsetup/install/files/lib/system/gridView/admin/TemplateGroupGridView.class.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,8 @@ public function __construct()
3636
$this->addColumns([
3737
GridViewColumn::for('templateGroupID')
3838
->label('wcf.global.objectID')
39-
->renderer(new ObjectIdColumnRenderer()),
39+
->renderer(new ObjectIdColumnRenderer())
40+
->sortable(),
4041
GridViewColumn::for('templateGroupName')
4142
->label('wcf.global.name')
4243
->titleColumn()

0 commit comments

Comments
 (0)