Skip to content

Commit 3fce6bb

Browse files
committed
MAGETWO-66165: [GitHub][PR] Don't skip attribute options with a value of 0 from the layered navigation #7578
- fixed incorrect condition
1 parent bf3cec5 commit 3fce6bb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/code/Magento/CatalogSearch/Model/Layer/Filter/Attribute.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ protected function _getItemsData()
8787
$isAttributeFilterable =
8888
$this->getAttributeIsFilterable($attribute) === static::ATTRIBUTE_OPTIONS_ONLY_WITH_RESULTS;
8989

90-
if (count($optionsFacetedData) === 0 && $isAttributeFilterable) {
90+
if (count($optionsFacetedData) === 0 && !$isAttributeFilterable) {
9191
return $this->itemDataBuilder->build();
9292
}
9393

0 commit comments

Comments
 (0)