Commit df317b1ee6a53c14de9761ca02d485b555e98d0f
1 parent
37e0907d
- bug fix in search
Showing
1 changed file
with
1 additions
and
1 deletions
 
Show diff stats
frontend/models/SearchModel.php
| ... | ... | @@ -50,6 +50,6 @@ | 
| 50 | 50 | if ($this->bookTitle){ | 
| 51 | 51 | $query->orWhere(['ilike', 'secondname', $this->text])->orWhere(['ilike', new Expression('concat(name,\' \',secondname)'), $this->text]); | 
| 52 | 52 | } | 
| 53 | - return $query->andWhere(['book.stattus' => Book::STATUS_ACTIVE])->column(); | |
| 53 | + return $query->andWhere(['book.status' => Book::STATUS_ACTIVE])->column(); | |
| 54 | 54 | } | 
| 55 | 55 | } | 
| 56 | 56 | \ No newline at end of file | ... | ... | 
 
