diff --git a/app/code/Magento/CatalogSearch/Model/Layer/Filter/Attribute.php b/app/code/Magento/CatalogSearch/Model/Layer/Filter/Attribute.php index 8c46242abb110..cfb363fe0dca1 100644 --- a/app/code/Magento/CatalogSearch/Model/Layer/Filter/Attribute.php +++ b/app/code/Magento/CatalogSearch/Model/Layer/Filter/Attribute.php @@ -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(); @@ -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; }