Commit a04c0e1556db102eb3e8dba8b2c1a0cede54889b

Authored by Yarik
1 parent 2582dd5b

Article query fix

Showing 1 changed file with 1 additions and 2 deletions   Show diff stats
frontend/controllers/ArticleController.php
... ... @@ -21,8 +21,7 @@
21 21 {
22 22 $searchModel = new ArticlesSearch();
23 23 $dataProvider = $searchModel->search(\Yii::$app->request->queryParams);
24   - $dataProvider->query->orderBy([ 'date' => SORT_DESC ])
25   - ->joinWith('lang', true, 'INNER JOIN');
  24 + $dataProvider->query->orderBy([ 'date' => SORT_DESC ]);
26 25 $dataProvider->pagination = [
27 26 'pageSize' => 10,
28 27 ];
... ...