Skip to content

Commit

Permalink
Nextras: allow zero values in range filter (#1028)
Browse files Browse the repository at this point in the history
  • Loading branch information
demmmmios committed Sep 13, 2022
1 parent 55fd8b4 commit 8085196
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/DataSource/NextrasDataSource.php
Expand Up @@ -224,11 +224,11 @@ protected function applyFilterRange(FilterRange $filter): void

$dataCondition = [];

if ($valueFrom) {
if (is_numeric($valueFrom)) {
$dataCondition[$this->prepareColumn($filter->getColumn()) . '>='] = $valueFrom;
}

if ($valueTo) {
if (is_numeric($valueTo)) {
$dataCondition[$this->prepareColumn($filter->getColumn()) . '<='] = $valueTo;
}

Expand Down

0 comments on commit 8085196

Please sign in to comment.