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.
2 parents 3c34e1d + 0c6e4de commit c588540Copy full SHA for c588540
app/code/Magento/CatalogSearch/Model/Layer/Filter/Attribute.php
@@ -53,7 +53,7 @@ public function __construct(
53
public function apply(\Magento\Framework\App\RequestInterface $request)
54
{
55
$attributeValue = $request->getParam($this->_requestVar);
56
- if (empty($attributeValue)) {
+ if (empty($attributeValue) && !is_numeric($attributeValue)) {
57
return $this;
58
}
59
$attribute = $this->getAttributeModel();
@@ -95,7 +95,7 @@ protected function _getItemsData()
95
$options = $attribute->getFrontend()
96
->getSelectOptions();
97
foreach ($options as $option) {
98
- if (empty($option['value'])) {
+ if (empty($option['value']) && !is_numeric($option['value'])) {
99
continue;
100
101
0 commit comments