From dab16105dd3bccd4c0389e10146896378d9cedf8 Mon Sep 17 00:00:00 2001 From: Vitalij Mik Date: Wed, 9 Oct 2024 09:56:06 +0200 Subject: [PATCH] NTR: PISHPS-370: Fix create order in admin (#859) Co-authored-by: Vitalij Mik --- src/Checkout/Cart/ExpressCartItemAddRoute.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Checkout/Cart/ExpressCartItemAddRoute.php b/src/Checkout/Cart/ExpressCartItemAddRoute.php index 39d212fab..c778463b7 100644 --- a/src/Checkout/Cart/ExpressCartItemAddRoute.php +++ b/src/Checkout/Cart/ExpressCartItemAddRoute.php @@ -46,9 +46,9 @@ public function getDecorated(): AbstractCartItemAddRoute public function add(Request $request, Cart $cart, SalesChannelContext $context, ?array $items): CartResponse { //we have to create a new request from global variables, because the request is not set here in the route - $request = Request::createFromGlobals(); + $tempRequest = Request::createFromGlobals(); - $isExpressCheckout = (bool)$request->get('isExpressCheckout', false); + $isExpressCheckout = (bool)$tempRequest->get('isExpressCheckout', false); if ($isExpressCheckout === false) { return $this->getDecorated()->add($request, $cart, $context, $items); }