From 5eaaecd50579c484c9e0741caae1ad58a6fce03e Mon Sep 17 00:00:00 2001 From: Niklas Wolf Date: Mon, 5 Aug 2024 13:49:04 +0200 Subject: [PATCH] fix: load order delivery state machine state --- src/Service/OrderDeliveryService.php | 1 + 1 file changed, 1 insertion(+) 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);