Skip to content

Commit e75cac2

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 53f8dc3 commit e75cac2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

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

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

9595
if (!empty($attributeCodes)) {
9696
$select->orWhere(
97-
'a.attribute_code in (?) AND a.frontend_input = \'boolean\'',
97+
'a.attribute_code in (?) AND a.frontend_input in (\'boolean\', \'price\')',
9898
$attributeCodes
9999
);
100100
}

0 commit comments

Comments
 (0)