Add `AbstractDatabaseObjectListBoxController::$defaultSortOrder`
authorMatthias Schmidt <gravatronics@live.com>
Thu, 6 Oct 2016 15:29:39 +0000 (17:29 +0200)
committerMatthias Schmidt <gravatronics@live.com>
Thu, 6 Oct 2016 15:29:43 +0000 (17:29 +0200)
wcfsetup/install/files/lib/system/box/AbstractDatabaseObjectListBoxController.class.php

index af51ab158115ad59e45b785d4130abe713089a28..235d7ace43382c88963ca9ddcae85db29a5364be 100644 (file)
@@ -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) {