Skip to content

Commit

Permalink
NTR: PISHPS-370: Fix create order in admin (#859)
Browse files Browse the repository at this point in the history
Co-authored-by: Vitalij Mik <[email protected]>
  • Loading branch information
BlackScorp and Vitalij Mik authored Oct 9, 2024
1 parent 22cea2c commit dab1610
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Checkout/Cart/ExpressCartItemAddRoute.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit dab1610

Please sign in to comment.