Skip to content

Commit

Permalink
Add original customer id check (#516)
Browse files Browse the repository at this point in the history
  • Loading branch information
valentin- authored Mar 22, 2024
1 parent 1b0ee60 commit b586dee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/CustomerSaveManager/DefaultCustomerSaveManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ protected function rememberOriginalCustomer(CustomerInterface $customer)
$originalCustomer = null;
}

if ($originalCustomerNeeded) {
if ($originalCustomerNeeded && $customer->getId()) {
$originalCustomer = $this->customerProvider->getById($customer->getId(), true);
}

Expand Down

0 comments on commit b586dee

Please sign in to comment.