Skip to content

Commit 30bc7b7

Browse files
XxXgeoXxXnaydav
authored andcommitted
Cannot return null for non-nullable field SelectedCustomizableOptionValue.sort_order and Call to a member function getPriceType() on null
1 parent 742e6a7 commit 30bc7b7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/code/Magento/QuoteGraphQl/Model/Cart/AddSimpleProductToCart.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ private function createBuyRequest(float $quantity, array $customOptions): DataOb
170170
*/
171171
private function convertCustomOptions(string $value)
172172
{
173-
if (substr($value, 0, 1) === "[" ||
173+
if (substr($value, 0, 1) === "[" &&
174174
substr($value, strlen($value) - 1, 1) === "]") {
175175
return explode(',', substr($value, 1, -1));
176176
}

0 commit comments

Comments
 (0)