Commit 68133386c5e13fbea4a2b5eaff22c42a2aab4342
1 parent
6c18fb74
+ fix /admin/blog/category/
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
common/modules/blog/views/category/index.php
@@ -15,7 +15,7 @@ echo GridView::widget([ | @@ -15,7 +15,7 @@ echo GridView::widget([ | ||
15 | 'class' => Column::className(), | 15 | 'class' => Column::className(), |
16 | 'header' => Yii::t('app', 'Name'), | 16 | 'header' => Yii::t('app', 'Name'), |
17 | 'content' => function($model, $key, $index, $column) { | 17 | 'content' => function($model, $key, $index, $column) { |
18 | - return $model->getArticleCategoryLangs()->where(['language_id' => Language::getDefaultLang()->language_id])->one()->name; | 18 | + return $model->getArticleCategoryLangs()->orderBy(['language_id' => 'ASC'])->one()->name; |
19 | } | 19 | } |
20 | ], | 20 | ], |
21 | [ | 21 | [ |