From 748561378ae08353db15bd069a5ab9180102bdfc Mon Sep 17 00:00:00 2001 From: Vitalij Mik Date: Wed, 9 Oct 2024 09:08:26 +0200 Subject: [PATCH] NTR: PISHPS-370: Fix create order in admin --- 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); }