Skip to content

Commit cc0286a

Browse files
committed
ACP2E-873 Allowed Country per website issue
Unit test failures fixed
1 parent 49c58bf commit cc0286a

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

app/code/Magento/Customer/Model/ResourceModel/AddressRepository.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,10 @@ public function save(\Magento\Customer\Api\Data\AddressInterface $address)
120120
} else {
121121
$addressModel->updateData($address);
122122
}
123-
if ($customerModel->getSharingConfig()->isWebsiteScope()) {
123+
if (
124+
$customerModel->getSharingConfig() !== null &&
125+
$customerModel->getSharingConfig()->isWebsiteScope()
126+
) {
124127
$addressModel->setStoreId($customerModel->getStoreId());
125128
}
126129

0 commit comments

Comments
 (0)