diff --git a/src/Service/OrderDeliveryService.php b/src/Service/OrderDeliveryService.php index 6c877f331..bb0bd40dc 100644 --- a/src/Service/OrderDeliveryService.php +++ b/src/Service/OrderDeliveryService.php @@ -28,6 +28,7 @@ public function getDelivery(string $orderDeliveryId, Context $context): ?OrderDe $criteria = new Criteria([$orderDeliveryId]); $criteria->addAssociation('order.transactions.paymentMethod'); $criteria->addAssociation('order.deliveries.shippingMethod'); + $criteria->addAssociation('order.deliveries.stateMachineState'); $criteria->addAssociation('shippingMethod'); $result = $this->orderDeliveryRepository->search($criteria, $context);