Commit ed7ff60955e9abc1ef775eefdfc3999cbb882e23
1 parent
df317b1e
- bug fix in search1
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
frontend/controllers/SupportController.php
@@ -42,7 +42,7 @@ | @@ -42,7 +42,7 @@ | ||
42 | if ($model->load(\Yii::$app->request->post())){ | 42 | if ($model->load(\Yii::$app->request->post())){ |
43 | $booksIds = $model->search(); | 43 | $booksIds = $model->search(); |
44 | if (count($booksIds) == 1){ | 44 | if (count($booksIds) == 1){ |
45 | - return $this->redirect(Url::to(['support/index', 'book_id' => $booksIds[0]['id']])); | 45 | + return $this->redirect(Url::to(['support/index', 'book_id' => $booksIds[0]])); |
46 | }else{ | 46 | }else{ |
47 | $dataProvider = new ActiveDataProvider( | 47 | $dataProvider = new ActiveDataProvider( |
48 | [ | 48 | [ |