Skip to content

Commit

Permalink
Merge pull request Smile-SA#1050 from afoucret/fix-range-facet-empty-…
Browse files Browse the repository at this point in the history
…bounds

Fix empty bounds in range query filters.
  • Loading branch information
afoucret authored Aug 30, 2018
2 parents 87ca07e + 0a6444d commit cfaf7bf
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 cfaf7bf

Please sign in to comment.