From: Matthias Schmidt Date: Thu, 6 Oct 2016 15:29:39 +0000 (+0200) Subject: Add `AbstractDatabaseObjectListBoxController::$defaultSortOrder` X-Git-Tag: 3.0.0_Beta_3~50^2~72 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=5864d8cd37b0243eede9ec00a00b71e66d77ef08;p=GitHub%2FWoltLab%2FWCF.git Add `AbstractDatabaseObjectListBoxController::$defaultSortOrder` --- 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) {