Skip to content
This repository has been archived by the owner on Dec 17, 2018. It is now read-only.

Commit

Permalink
Разрешено передавать "0" в фильтр
Browse files Browse the repository at this point in the history
  • Loading branch information
xxxcoltxxx authored Jul 14, 2016
1 parent 621eab6 commit 1d4522f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/GridTable.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ protected function buildQuery($searches, $prefix = '')
$filters = $this->data_provider->getFilters();
foreach ($searches as $alias => $search) {
$alias = $prefix . $alias;
if (!$search) {
if (! is_numeric($search) && empty($search)) {
continue;
}

Expand Down Expand Up @@ -288,4 +288,4 @@ private function decodeField($field)
{
return str_replace(':', '.', $field);
}
}
}

0 comments on commit 1d4522f

Please sign in to comment.