We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ea79f7d commit 9f27349Copy full SHA for 9f27349
app/code/Magento/Elasticsearch/SearchAdapter/Filter/Builder/Range.php
@@ -33,10 +33,10 @@ public function buildFilter(RequestFilterInterface $filter)
33
{
34
$filterQuery = [];
35
$fieldName = $this->fieldMapper->getFieldName($filter->getField());
36
- if ($filter->getFrom()) {
+ if ($filter->getFrom() !== null) {
37
$filterQuery['range'][$fieldName]['gte'] = $filter->getFrom();
38
}
39
- if ($filter->getTo()) {
+ if ($filter->getTo() !== null) {
40
$filterQuery['range'][$fieldName]['lte'] = $filter->getTo();
41
42
return [$filterQuery];
0 commit comments