Skip to content

Commit beb41d0

Browse files
fix webapi
1 parent a922551 commit beb41d0

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

app/code/Magento/Sales/Model/Order/ItemRepository.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,9 @@ private function getItemProductOptions(OrderItemInterface $entity): array
185185
{
186186
$request = $this->getBuyRequest($entity);
187187
$productOptions = $entity->getProductOptions();
188-
$productOptions['info_buyRequest'] = array_merge($productOptions['info_buyRequest'], $request->toArray());
188+
$productOptions['info_buyRequest'] = $productOptions
189+
? array_merge($productOptions['info_buyRequest'], $request->toArray())
190+
: $request->toArray();
189191

190192
return $productOptions;
191193
}

0 commit comments

Comments
 (0)