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,6 +48,9 @@ | ||
| 48 | 'index' => [ | 48 | 'index' => [ |
| 49 | 'class' => Index::className(), | 49 | 'class' => Index::className(), |
| 50 | 'columns' => [ | 50 | 'columns' => [ |
| 51 | + 'id' => [ | ||
| 52 | + 'type' => Index::NUMBER_COL, | ||
| 53 | + ], | ||
| 51 | 'link' => [ | 54 | 'link' => [ |
| 52 | 'type' => Index::ACTION_COL, | 55 | 'type' => Index::ACTION_COL, |
| 53 | ], | 56 | ], |
| @@ -57,11 +60,15 @@ | @@ -57,11 +60,15 @@ | ||
| 57 | 'status' => [ | 60 | 'status' => [ |
| 58 | 'type' => Index::STATUS_COL, | 61 | 'type' => Index::STATUS_COL, |
| 59 | ], | 62 | ], |
| 63 | + | ||
| 60 | ], | 64 | ], |
| 61 | 'model' => Partner::className(), | 65 | 'model' => Partner::className(), |
| 62 | 'hasLanguage' => false, | 66 | 'hasLanguage' => false, |
| 63 | 'enableMassDelete' => true, | 67 | 'enableMassDelete' => true, |
| 64 | 'modelPrimaryKey' => 'id', | 68 | 'modelPrimaryKey' => 'id', |
| 69 | + 'defaultSort' => [ | ||
| 70 | + 'id' => SORT_DESC | ||
| 71 | + ] | ||
| 65 | ], | 72 | ], |
| 66 | 'create' => array_merge([ 'class' => Create::className() ], self::fieldsConfig()), | 73 | 'create' => array_merge([ 'class' => Create::className() ], self::fieldsConfig()), |
| 67 | 'update' => array_merge([ 'class' => Update::className() ], self::fieldsConfig()), | 74 | 'update' => array_merge([ 'class' => Update::className() ], self::fieldsConfig()), |