From 5864d8cd37b0243eede9ec00a00b71e66d77ef08 Mon Sep 17 00:00:00 2001 From: Matthias Schmidt Date: Thu, 6 Oct 2016 17:29:39 +0200 Subject: [PATCH] Add `AbstractDatabaseObjectListBoxController::$defaultSortOrder` --- .../box/AbstractDatabaseObjectListBoxController.class.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/wcfsetup/install/files/lib/system/box/AbstractDatabaseObjectListBoxController.class.php b/wcfsetup/install/files/lib/system/box/AbstractDatabaseObjectListBoxController.class.php index af51ab1581..235d7ace43 100644 --- a/wcfsetup/install/files/lib/system/box/AbstractDatabaseObjectListBoxController.class.php +++ b/wcfsetup/install/files/lib/system/box/AbstractDatabaseObjectListBoxController.class.php @@ -46,6 +46,12 @@ abstract class AbstractDatabaseObjectListBoxController extends AbstractBoxContro */ public $defaultSortField; + /** + * default sort order + * @var string + */ + public $defaultSortOrder; + /** * limit value for the maximum number of shown database objects * @var integer @@ -111,6 +117,7 @@ abstract class AbstractDatabaseObjectListBoxController extends AbstractBoxContro if (!empty($this->validSortFields)) { $this->sortField = $this->defaultSortField; + $this->sortOrder = $this->defaultSortOrder; } if ($this->defaultLimit !== null) { -- 2.20.1