Skip to content

Commit cde4cbb

Browse files
committed
AC-11432: Improve address validation
1 parent 5eeb0bb commit cde4cbb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/code/Magento/Quote/Model/QuoteAddressValidator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ public function validateWithExistingAddress(CartInterface $cart, AddressInterfac
148148
// check if address belongs to quote.
149149
if ($address->getId() !== null) {
150150
$old = $cart->getAddressById($address->getId());
151-
if ($old === false) {
151+
if (empty($old)) {
152152
throw new NoSuchEntityException(
153153
__('Invalid quote address id %1', $address->getId())
154154
);

0 commit comments

Comments
 (0)