Skip to content

Commit

Permalink
#-: fixed bug in filterBy
Browse files Browse the repository at this point in the history
  • Loading branch information
Roman Dubrovin committed Jul 6, 2018
1 parent 25c9093 commit 379e13c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Traits/SearchTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public function filterBy($field, $default = null)
}

if (array_has($this->filter, $field)) {
$this->query->where($preparedField, $this->filter[$field]);
$this->query->where($field, $this->filter[$field]);
}

return $this;
Expand Down

0 comments on commit 379e13c

Please sign in to comment.