diff --git a/app/code/Magento/Sales/Model/Order/ItemRepository.php b/app/code/Magento/Sales/Model/Order/ItemRepository.php index 5e36cc3683d6e..dcb669055964b 100644 --- a/app/code/Magento/Sales/Model/Order/ItemRepository.php +++ b/app/code/Magento/Sales/Model/Order/ItemRepository.php @@ -185,7 +185,9 @@ private function getItemProductOptions(OrderItemInterface $entity): array { $request = $this->getBuyRequest($entity); $productOptions = $entity->getProductOptions(); - $productOptions['info_buyRequest'] = array_merge($productOptions['info_buyRequest'], $request->toArray()); + $productOptions['info_buyRequest'] = $productOptions + ? array_merge($productOptions['info_buyRequest'], $request->toArray()) + : $request->toArray(); return $productOptions; }