Skip to content

Commit

Permalink
⏫ Forwardport of #12998 to 2.3-develop branch
Browse files Browse the repository at this point in the history
  • Loading branch information
magento-engcom-team committed Jan 26, 2018
1 parent b7dc2b3 commit 4bad8be
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/code/Magento/Sales/Model/Order/CustomerManagement.php
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,7 @@ public function create($orderId)
$customer = $this->customerFactory->create(['data' => $customerData]);
$account = $this->accountManagement->createAccount($customer);
$order->setCustomerId($account->getId());
$order->setCustomerIsGuest(0);
$this->orderRepository->save($order);

return $account;
Expand Down

0 comments on commit 4bad8be

Please sign in to comment.