We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a922551 commit beb41d0Copy full SHA for beb41d0
app/code/Magento/Sales/Model/Order/ItemRepository.php
@@ -185,7 +185,9 @@ private function getItemProductOptions(OrderItemInterface $entity): array
185
{
186
$request = $this->getBuyRequest($entity);
187
$productOptions = $entity->getProductOptions();
188
- $productOptions['info_buyRequest'] = array_merge($productOptions['info_buyRequest'], $request->toArray());
+ $productOptions['info_buyRequest'] = $productOptions
189
+ ? array_merge($productOptions['info_buyRequest'], $request->toArray())
190
+ : $request->toArray();
191
192
return $productOptions;
193
}
0 commit comments