Skip to content

Commit c5c5e41

Browse files
author
Mads Nielsen
committed
Fixes #20969
1 parent 8dfe26a commit c5c5e41

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/code/Magento/CatalogSearch/Model/Adapter/Mysql/Aggregation/DataProvider/SelectBuilderForAttribute.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ public function build(Select $select, AbstractAttribute $attribute, int $current
101101
$subSelect = $select;
102102
$subSelect->from(['main_table' => $table], ['main_table.entity_id', 'main_table.value'])
103103
->distinct()
104-
->where('main_table.attribute_id = ?', $attribute->getAttributeId())
104+
->where('main_table.attribute_id = ?', (int) $attribute->getAttributeId())
105105
->where('main_table.store_id = ? ', $currentScopeId);
106106
if ($this->isAddStockFilter()) {
107107
$subSelect = $this->applyStockConditionToSelect->execute($subSelect);

0 commit comments

Comments
 (0)