Commit 3549e14a4c5fdc960a8f0b6d703aede3c82b0388
1 parent
369261c2
fix 2
Showing
1 changed file
with
7 additions
and
0 deletions
Show diff stats
backend/controllers/PartnerController.php
| ... | ... | @@ -48,6 +48,9 @@ |
| 48 | 48 | 'index' => [ |
| 49 | 49 | 'class' => Index::className(), |
| 50 | 50 | 'columns' => [ |
| 51 | + 'id' => [ | |
| 52 | + 'type' => Index::NUMBER_COL, | |
| 53 | + ], | |
| 51 | 54 | 'link' => [ |
| 52 | 55 | 'type' => Index::ACTION_COL, |
| 53 | 56 | ], |
| ... | ... | @@ -57,11 +60,15 @@ |
| 57 | 60 | 'status' => [ |
| 58 | 61 | 'type' => Index::STATUS_COL, |
| 59 | 62 | ], |
| 63 | + | |
| 60 | 64 | ], |
| 61 | 65 | 'model' => Partner::className(), |
| 62 | 66 | 'hasLanguage' => false, |
| 63 | 67 | 'enableMassDelete' => true, |
| 64 | 68 | 'modelPrimaryKey' => 'id', |
| 69 | + 'defaultSort' => [ | |
| 70 | + 'id' => SORT_DESC | |
| 71 | + ] | |
| 65 | 72 | ], |
| 66 | 73 | 'create' => array_merge([ 'class' => Create::className() ], self::fieldsConfig()), |
| 67 | 74 | 'update' => array_merge([ 'class' => Update::className() ], self::fieldsConfig()), | ... | ... |