Skip to content

Commit

Permalink
Merge pull request #5913 from magento-epam/MC-25043
Browse files Browse the repository at this point in the history
[epam] MC-25043: Layered Navigation does not return "No" option for boolean attributes when using elasticsearch
  • Loading branch information
zakdma authored Jul 21, 2020
2 parents 56e17b8 + 54298be commit 455ca54
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -572,7 +572,7 @@ public function prepareProductIndex($indexData, $productData, $storeId)
foreach ($indexData as $entityId => $attributeData) {
foreach ($attributeData as $attributeId => $attributeValues) {
$value = $this->getAttributeValue($attributeId, $attributeValues, $storeId);
if ($value !== null && $value !== false && $value != '') {
if ($value !== null && $value !== false && $value !== '') {
if (!isset($index[$attributeId])) {
$index[$attributeId] = [];
}
Expand Down

0 comments on commit 455ca54

Please sign in to comment.