Commit 3d4c8f838a4cec2e85f5a09c885f516abbbaeab7

Authored by Yarik
1 parent d9591db1

Project to product fix

Showing 1 changed file with 1 additions and 0 deletions   Show diff stats
backend/controllers/ProjectController.php
@@ -163,6 +163,7 @@ @@ -163,6 +163,7 @@
163 $model = $this->findModel($id); 163 $model = $this->findModel($id);
164 $searchModel = new ProductToProjectSearch(); 164 $searchModel = new ProductToProjectSearch();
165 $dataProvider = $searchModel->search(\Yii::$app->request->queryParams); 165 $dataProvider = $searchModel->search(\Yii::$app->request->queryParams);
  166 + $dataProvider->query->andWhere(['project_id' => $model->project_id]);
166 return $this->render('product', [ 167 return $this->render('product', [
167 'project' => $model, 168 'project' => $model,
168 'searchModel' => $searchModel, 169 'searchModel' => $searchModel,