diff --git a/backend/controllers/PartnerController.php b/backend/controllers/PartnerController.php index 200b3f5..5fcdd16 100644 --- a/backend/controllers/PartnerController.php +++ b/backend/controllers/PartnerController.php @@ -48,6 +48,9 @@ 'index' => [ 'class' => Index::className(), 'columns' => [ + 'id' => [ + 'type' => Index::NUMBER_COL, + ], 'link' => [ 'type' => Index::ACTION_COL, ], @@ -57,11 +60,15 @@ 'status' => [ 'type' => Index::STATUS_COL, ], + ], 'model' => Partner::className(), 'hasLanguage' => false, 'enableMassDelete' => true, 'modelPrimaryKey' => 'id', + 'defaultSort' => [ + 'id' => SORT_DESC + ] ], 'create' => array_merge([ 'class' => Create::className() ], self::fieldsConfig()), 'update' => array_merge([ 'class' => Update::className() ], self::fieldsConfig()), -- libgit2 0.21.4