diff --git a/frontend/controllers/SupportController.php b/frontend/controllers/SupportController.php index c58c01c..1cec5c5 100644 --- a/frontend/controllers/SupportController.php +++ b/frontend/controllers/SupportController.php @@ -42,7 +42,7 @@ if ($model->load(\Yii::$app->request->post())){ $booksIds = $model->search(); if (count($booksIds) == 1){ - return $this->redirect(Url::to(['support/index', 'book_id' => $booksIds[0]['id']])); + return $this->redirect(Url::to(['support/index', 'book_id' => $booksIds[0]])); }else{ $dataProvider = new ActiveDataProvider( [ -- libgit2 0.21.4