diff --git a/backend/controllers/RequestController.php b/backend/controllers/RequestController.php index 7d33aba..a5ca318 100644 --- a/backend/controllers/RequestController.php +++ b/backend/controllers/RequestController.php @@ -16,15 +16,17 @@ 'index' => [ 'class' => Index::class, 'columns' => [ - 'name' => [ + 'id' => [ + 'type' => Index::NUMBER_COL, + + ], + 'name' => [ 'type' => Index::ACTION_COL, 'columnConfig' => [ 'buttonsTemplate' => '{edit}{delete}', ], ], - 'secondname' => [ - 'type' => Index::STRING_COL, - ], + 'organization' => [ 'type' => Index::STRING_COL, ], @@ -34,6 +36,7 @@ 'enableMassDelete' => true, 'modelPrimaryKey' => 'id', 'create' => false, + 'defaultSort' => ['id' => SORT_DESC] ], ]; } -- libgit2 0.21.4