Skip to content

Commit dc3bdb8

Browse files
committed
Make sure Yes/No attribute Layered Navigation filter will be joined from index table
1 parent f3d7a0d commit dc3bdb8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

app/code/Magento/CatalogSearch/Model/Adapter/Mysql/Filter/Preprocessor.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ private function processQueryWithField(FilterInterface $filter, $isNegation, $qu
170170
} elseif ($filter->getField() === VisibilityFilter::VISIBILITY_FILTER_FIELD) {
171171
return '';
172172
} elseif ($filter->getType() === FilterInterface::TYPE_TERM &&
173-
in_array($attribute->getFrontendInput(), ['select', 'multiselect'], true)
173+
in_array($attribute->getFrontendInput(), ['select', 'multiselect', 'boolean'], true)
174174
) {
175175
$resultQuery = $this->processTermSelect($filter, $isNegation);
176176
} elseif ($filter->getType() === FilterInterface::TYPE_RANGE &&

app/code/Magento/CatalogSearch/Model/Search/CustomAttributeFilterCheck.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ public function isCustom(FilterInterface $filter)
4444

4545
return $attribute
4646
&& $filter->getType() === FilterInterface::TYPE_TERM
47-
&& in_array($attribute->getFrontendInput(), ['select', 'multiselect'], true);
47+
&& in_array($attribute->getFrontendInput(), ['select', 'multiselect', 'boolean'], true);
4848
}
4949

5050
/**

0 commit comments

Comments
 (0)