Skip to content

Commit

Permalink
Accept boolean values at custom filter
Browse files Browse the repository at this point in the history
  • Loading branch information
aginev committed Sep 24, 2018
1 parent e6d3166 commit c88fb5f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Filter.php
Original file line number Diff line number Diff line change
Expand Up @@ -168,8 +168,8 @@ public function hasCustomFilters()
public function custom($key, Closure $callback, Closure $order_callback = null)
{
$this->setConstraint($key, $order_callback);

if ($value = $this->value($key)) {
if (!is_null($value)) {
$callback($this->query, $key, $value);
}

Expand Down

0 comments on commit c88fb5f

Please sign in to comment.