Skip to content

Commit 33564da

Browse files
committed
ACP2E-1306: Catalog sorting not working for boolean attributes
1 parent 5a022f6 commit 33564da

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/code/Magento/Elasticsearch/Model/Adapter/FieldMapper/Product/AttributeAdapter.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ public function isTextType(): bool
137137
public function isComplexType(): bool
138138
{
139139
return in_array($this->getAttribute()->getFrontendInput(), ['select', 'multiselect'], true)
140-
|| $this->getAttribute()->usesSource();
140+
|| ($this->getAttribute()->usesSource() && $this->getAttribute()->getFrontendInput() !== 'boolean');
141141
}
142142

143143
/**

0 commit comments

Comments
 (0)