From 5ca2ff6c05e45790a0df744717924fccc6d68314 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim=20D=C3=BCsterhus?= Date: Wed, 19 Aug 2020 16:55:17 +0200 Subject: [PATCH] Use dedicated column for loginUsername in packageUpdateServerList --- .../files/acp/templates/packageUpdateServerList.tpl | 7 +++---- .../lib/acp/page/PackageUpdateServerListPage.class.php | 2 +- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/wcfsetup/install/files/acp/templates/packageUpdateServerList.tpl b/wcfsetup/install/files/acp/templates/packageUpdateServerList.tpl index 4684b62a1f..171936425e 100644 --- a/wcfsetup/install/files/acp/templates/packageUpdateServerList.tpl +++ b/wcfsetup/install/files/acp/templates/packageUpdateServerList.tpl @@ -34,6 +34,7 @@ {lang}wcf.global.objectID{/lang} {lang}wcf.acp.updateServer.serverURL{/lang} + {lang}wcf.acp.updateServer.loginUsername{/lang} {lang}wcf.acp.updateServer.packages{/lang} {lang}wcf.acp.updateServer.status{/lang} {lang}wcf.acp.updateServer.errorMessage{/lang} @@ -54,10 +55,8 @@ {event name='itemButtons'} {@$updateServer->packageUpdateServerID} - - {$updateServer->serverURL} - {if $updateServer->loginUsername}({$updateServer->loginUsername}){/if} - + {$updateServer->serverURL} + {$updateServer->loginUsername} {#$updateServer->packages} {@$updateServer->status} {@$updateServer->errorMessage|truncate:"30"} diff --git a/wcfsetup/install/files/lib/acp/page/PackageUpdateServerListPage.class.php b/wcfsetup/install/files/lib/acp/page/PackageUpdateServerListPage.class.php index 9b1b9a75aa..4c8ff59619 100755 --- a/wcfsetup/install/files/lib/acp/page/PackageUpdateServerListPage.class.php +++ b/wcfsetup/install/files/lib/acp/page/PackageUpdateServerListPage.class.php @@ -32,7 +32,7 @@ class PackageUpdateServerListPage extends SortablePage { /** * @inheritDoc */ - public $validSortFields = ['packageUpdateServerID', 'serverURL', 'status', 'errorMessage', 'lastUpdateTime', 'packages']; + public $validSortFields = ['packageUpdateServerID', 'serverURL', 'loginUsername', 'status', 'errorMessage', 'lastUpdateTime', 'packages']; /** * @inheritDoc -- 2.20.1