Commit 9339008393fe0956e96b65068cf3f1bd7e940cfb
1 parent
1b2cc4c2
Another one admin fix
Showing
1 changed file
with
1 additions
and
2 deletions
Show diff stats
frontend/controllers/ProjectController.php
@@ -24,7 +24,7 @@ | @@ -24,7 +24,7 @@ | ||
24 | $dataProvider->pagination = [ | 24 | $dataProvider->pagination = [ |
25 | 'pageSize' => 10, | 25 | 'pageSize' => 10, |
26 | ]; | 26 | ]; |
27 | - $dataProvider->query->with('images')->joinWith('lang', true, 'INNER JOIN'); | 27 | + $dataProvider->query->with('images'); |
28 | return $this->render('index', [ | 28 | return $this->render('index', [ |
29 | 'searchModel' => $searchModel, | 29 | 'searchModel' => $searchModel, |
30 | 'dataProvider' => $dataProvider, | 30 | 'dataProvider' => $dataProvider, |
@@ -43,7 +43,6 @@ | @@ -43,7 +43,6 @@ | ||
43 | { | 43 | { |
44 | $model = Project::find() | 44 | $model = Project::find() |
45 | ->where([ 'project.project_id' => $id ]) | 45 | ->where([ 'project.project_id' => $id ]) |
46 | - ->joinWith('lang', true, 'INNER JOIN') | ||
47 | ->one(); | 46 | ->one(); |
48 | if(empty( $model )) { | 47 | if(empty( $model )) { |
49 | throw new NotFoundHttpException(); | 48 | throw new NotFoundHttpException(); |