From 072717c517854534cf60d4bbef37dde2a6136e05 Mon Sep 17 00:00:00 2001 From: Matthias Schmidt Date: Sat, 14 Jul 2012 15:20:28 +0200 Subject: [PATCH] Removes possibility to sort package list by package version Since the sorting is handled by the database, the sorting of the package version won't be correct, thus it's removed. --- wcfsetup/install/files/acp/templates/packageListDetailed.tpl | 2 +- .../files/lib/acp/page/PackageListDetailedPage.class.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/wcfsetup/install/files/acp/templates/packageListDetailed.tpl b/wcfsetup/install/files/acp/templates/packageListDetailed.tpl index eb88d2e53c..a36708df6e 100644 --- a/wcfsetup/install/files/acp/templates/packageListDetailed.tpl +++ b/wcfsetup/install/files/acp/templates/packageListDetailed.tpl @@ -46,7 +46,7 @@ {lang}wcf.global.objectID{/lang}{if $sortField == 'packageID'} {/if} {lang}wcf.acp.package.name{/lang}{if $sortField == 'packageName'} {/if} {lang}wcf.acp.package.author{/lang}{if $sortField == 'author'} {/if} - {lang}wcf.acp.package.version{/lang}{if $sortField == 'packageVersion'} {/if} + {lang}wcf.acp.package.version{/lang} {lang}wcf.acp.package.updateDate{/lang}{if $sortField == 'updateDate'} {/if} {event name='headColumns'} diff --git a/wcfsetup/install/files/lib/acp/page/PackageListDetailedPage.class.php b/wcfsetup/install/files/lib/acp/page/PackageListDetailedPage.class.php index 6288be5e47..030dd5463f 100644 --- a/wcfsetup/install/files/lib/acp/page/PackageListDetailedPage.class.php +++ b/wcfsetup/install/files/lib/acp/page/PackageListDetailedPage.class.php @@ -38,7 +38,7 @@ class PackageListDetailedPage extends SortablePage { /** * @see wcf\page\SortablePage::$validSortFields */ - public $validSortFields = array('packageID', 'package', 'packageDir', 'packageName', 'instanceNo', 'packageDescription', 'packageVersion', 'packageDate', 'packageURL', 'parentPackageID', 'isUnique', 'isApplication', 'author', 'authorURL', 'installDate', 'updateDate'); + public $validSortFields = array('packageID', 'package', 'packageDir', 'packageName', 'instanceNo', 'packageDescription', 'packageDate', 'packageURL', 'parentPackageID', 'isUnique', 'isApplication', 'author', 'authorURL', 'installDate', 'updateDate'); /** * @see wcf\page\MultipleLinkPage::$objectListClassName -- 2.20.1