Skip to content

Commit

Permalink
correct criteria for skipping attribute options from the layered navi…
Browse files Browse the repository at this point in the history
…gation
  • Loading branch information
Diego Cabrejas committed Nov 26, 2016
1 parent 4bc9fcc commit 0c6e4de
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ public function __construct(
public function apply(\Magento\Framework\App\RequestInterface $request)
{
$attributeValue = $request->getParam($this->_requestVar);
if (empty($attributeValue)) {
if (empty($attributeValue) && !is_numeric($attributeValue)) {
return $this;
}
$attribute = $this->getAttributeModel();
Expand Down Expand Up @@ -95,7 +95,7 @@ protected function _getItemsData()
$options = $attribute->getFrontend()
->getSelectOptions();
foreach ($options as $option) {
if (empty($option['value'])) {
if (empty($option['value']) && !is_numeric($option['value'])) {
continue;
}

Expand Down

0 comments on commit 0c6e4de

Please sign in to comment.