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 | 16 | 'index' => [ |
17 | 17 | 'class' => Index::class, |
18 | 18 | 'columns' => [ |
19 | - 'name' => [ | |
19 | + 'id' => [ | |
20 | + 'type' => Index::NUMBER_COL, | |
21 | + | |
22 | + ], | |
23 | + 'name' => [ | |
20 | 24 | 'type' => Index::ACTION_COL, |
21 | 25 | 'columnConfig' => [ |
22 | 26 | 'buttonsTemplate' => '{edit}{delete}', |
23 | 27 | ], |
24 | 28 | ], |
25 | - 'secondname' => [ | |
26 | - 'type' => Index::STRING_COL, | |
27 | - ], | |
29 | + | |
28 | 30 | 'organization' => [ |
29 | 31 | 'type' => Index::STRING_COL, |
30 | 32 | ], |
... | ... | @@ -34,6 +36,7 @@ |
34 | 36 | 'enableMassDelete' => true, |
35 | 37 | 'modelPrimaryKey' => 'id', |
36 | 38 | 'create' => false, |
39 | + 'defaultSort' => ['id' => SORT_DESC] | |
37 | 40 | ], |
38 | 41 | ]; |
39 | 42 | } | ... | ... |