Commit c38043522d9e5465e1ca6231b0a20b5eeb474924
1 parent
2ed4f4be
4) в админке подписчики выводятся в обратном порядке
Showing
1 changed file
with
7 additions
and
4 deletions
Show diff stats
backend/controllers/RequestController.php
| @@ -16,15 +16,17 @@ | @@ -16,15 +16,17 @@ | ||
| 16 | 'index' => [ | 16 | 'index' => [ |
| 17 | 'class' => Index::class, | 17 | 'class' => Index::class, |
| 18 | 'columns' => [ | 18 | 'columns' => [ |
| 19 | - 'name' => [ | 19 | + 'id' => [ |
| 20 | + 'type' => Index::NUMBER_COL, | ||
| 21 | + | ||
| 22 | + ], | ||
| 23 | + 'name' => [ | ||
| 20 | 'type' => Index::ACTION_COL, | 24 | 'type' => Index::ACTION_COL, |
| 21 | 'columnConfig' => [ | 25 | 'columnConfig' => [ |
| 22 | 'buttonsTemplate' => '{edit}{delete}', | 26 | 'buttonsTemplate' => '{edit}{delete}', |
| 23 | ], | 27 | ], |
| 24 | ], | 28 | ], |
| 25 | - 'secondname' => [ | ||
| 26 | - 'type' => Index::STRING_COL, | ||
| 27 | - ], | 29 | + |
| 28 | 'organization' => [ | 30 | 'organization' => [ |
| 29 | 'type' => Index::STRING_COL, | 31 | 'type' => Index::STRING_COL, |
| 30 | ], | 32 | ], |
| @@ -34,6 +36,7 @@ | @@ -34,6 +36,7 @@ | ||
| 34 | 'enableMassDelete' => true, | 36 | 'enableMassDelete' => true, |
| 35 | 'modelPrimaryKey' => 'id', | 37 | 'modelPrimaryKey' => 'id', |
| 36 | 'create' => false, | 38 | 'create' => false, |
| 39 | + 'defaultSort' => ['id' => SORT_DESC] | ||
| 37 | ], | 40 | ], |
| 38 | ]; | 41 | ]; |
| 39 | } | 42 | } |