From ed7ff60955e9abc1ef775eefdfc3999cbb882e23 Mon Sep 17 00:00:00 2001 From: Anastasia Date: Sat, 23 Jun 2018 12:15:49 +0300 Subject: [PATCH] - bug fix in search1 --- frontend/controllers/SupportController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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