Skip to content

Commit ab6f8cb

Browse files
author
Eric Bohanon
committed
MAGETWO-87147: Fix bundled product dynamic enum
1 parent abafe80 commit ab6f8cb

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

app/code/Magento/BundleGraphQl/Model/Resolver/Products/Query/BundleProductPostProcessor.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ public function process(array $resultData)
104104
'price_type' => $this->enumLookup->getEnumValueFromField(
105105
'PriceTypeEnum',
106106
$link->getPriceType()
107-
),
107+
) ?: 'DYNAMIC',
108108
'can_change_quantity' => $link->getCanChangeQuantity()
109109
];
110110
$resultData[$productKey]['items'][$optionKey]['options'][$link['sku']] = $formattedLink;

app/code/Magento/BundleGraphQl/etc/graphql.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,5 +48,6 @@
4848
<type xsi:type="Enum" name="PriceTypeEnum">
4949
<item name="fixed">FIXED</item>
5050
<item name="percent">PERCENT</item>
51+
<item name="dynamic">DYNAMIC</item>
5152
</type>
5253
</config>

0 commit comments

Comments
 (0)