Skip to content

Commit 53f8dc3

Browse files
committed
Resolved not getting correct attribute code, label value of price type attribute in aggregations data of products GraphQl response #28878
1 parent c35093a commit 53f8dc3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/code/Magento/CatalogGraphQl/DataProvider/Product/LayeredNavigation/AttributeOptionProvider.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ public function getOptions(array $optionIds, ?int $storeId, array $attributeCode
9090
Store::DEFAULT_STORE_ID
9191
);
9292

93-
$select->where('option_value.option_id IN (?)', $optionIds);
93+
$select->where('a.attribute_code IN (?)', $attributeCodes);
9494

9595
if (!empty($attributeCodes)) {
9696
$select->orWhere(

0 commit comments

Comments
 (0)