diff --git a/src/ViewRepository/Cart/CartViewRepository.php b/src/ViewRepository/Cart/CartViewRepository.php index 1511c3a09..5dea01085 100644 --- a/src/ViewRepository/Cart/CartViewRepository.php +++ b/src/ViewRepository/Cart/CartViewRepository.php @@ -31,10 +31,8 @@ public function getOneByToken(string $token): CartSummaryView { /** @var OrderInterface $cart */ $cart = $this->cartRepository->createCartQueryBuilder() - ->andWhere('o.checkoutState != :checkoutState') ->andWhere('o.tokenValue = :tokenValue') ->setParameter('tokenValue', $token) - ->setParameter('checkoutState', OrderCheckoutStates::STATE_COMPLETED) ->getQuery() ->getOneOrNullResult(); diff --git a/tests/DataFixtures/ORM/order.yml b/tests/DataFixtures/ORM/order.yml index d0bde34a3..29c21db91 100644 --- a/tests/DataFixtures/ORM/order.yml +++ b/tests/DataFixtures/ORM/order.yml @@ -7,7 +7,7 @@ Sylius\Component\Core\Model\Order: customer: "@customer_oliver" checkoutState: "completed" checkoutCompletedAt: "" - state: "cart" + state: "new" payments: ["@placed_order_payment"] shipments: ["@placed_order_shipment"] shippingAddress: "@customer_oliver_home_address"