Skip to content

Commit f900c29

Browse files
committed
Merge remote-tracking branch '36583/bug/unable-to-create-new-address-36582' into comm_voted
2 parents b39beca + 069fb32 commit f900c29

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

app/code/Magento/Customer/Model/ResourceModel/Address/Attribute/Source/CountryWithWebsites.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -120,16 +120,16 @@ public function getAllOptions($withEmpty = true, $defaultValues = false)
120120
$allowedCountries = array_unique(array_merge([], ...$allowedCountries));
121121
} else {
122122
// Address can be added only for the allowed country list.
123-
$storeId = null;
123+
$websiteId = null;
124124
$customerId = $this->request->getParam('parent_id') ?? null;
125125
if ($customerId) {
126126
$customer = $this->customerRepository->getById($customerId);
127-
$storeId = $customer->getStoreId();
127+
$websiteId = $customer->getWebsiteId();
128128
}
129129

130130
$allowedCountries = $this->allowedCountriesReader->getAllowedCountries(
131131
ScopeInterface::SCOPE_WEBSITE,
132-
$storeId
132+
$websiteId
133133
);
134134
}
135135

0 commit comments

Comments
 (0)