Skip to content

Commit

Permalink
Fix empty bounds in range query filters.
Browse files Browse the repository at this point in the history
  • Loading branch information
Aurélien FOUCRET committed Aug 30, 2018
1 parent 87ca07e commit 0a6444d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ public function apply(\Magento\Framework\App\RequestInterface $request)

$this->getLayer()->getProductCollection()->addFieldToFilter(
$this->getAttributeModel()->getAttributeCode(),
['gte' => $fromValue, 'lt' => $toValue]
array_filter(['gte' => $fromValue, 'lt' => $toValue])
);

$this->getLayer()->getState()->addFilter(
Expand Down

0 comments on commit 0a6444d

Please sign in to comment.