Skip to content

Commit 79bb73c

Browse files
committed
MAGETWO-98832: Multistore Allowed Countries List Problem
1 parent 4cbe5a4 commit 79bb73c

File tree

3 files changed

+5
-1
lines changed

3 files changed

+5
-1
lines changed

app/code/Magento/Customer/Model/AccountManagement.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -377,6 +377,7 @@ class AccountManagement implements AccountManagementInterface
377377
* @param CollectionFactory|null $visitorCollectionFactory
378378
* @param SearchCriteriaBuilder|null $searchCriteriaBuilder
379379
* @param AddressRegistry|null $addressRegistry
380+
* @param AllowedCountries|null $allowedCountriesReader
380381
* @SuppressWarnings(PHPMD.ExcessiveParameterList)
381382
* @SuppressWarnings(PHPMD.NPathComplexity)
382383
*/

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -408,6 +408,7 @@ class Quote extends AbstractExtensibleModel implements \Magento\Quote\Api\Data\C
408408
* @param \Magento\Framework\Data\Collection\AbstractDb|null $resourceCollection
409409
* @param array $data
410410
* @param \Magento\Sales\Model\OrderIncrementIdChecker|null $orderIncrementIdChecker
411+
* @param AllowedCountries|null $allowedCountriesReader
411412
* @SuppressWarnings(PHPMD.ExcessiveParameterList)
412413
* @SuppressWarnings(PHPMD.CyclomaticComplexity)
413414
*/
@@ -953,7 +954,8 @@ public function assignCustomerWithAddressChange(
953954
/** @var \Magento\Quote\Model\Quote\Address $billingAddress */
954955
$billingAddress = $this->_quoteAddressFactory->create();
955956
$billingAddress->importCustomerAddressData($defaultBillingAddress);
956-
if($this->isAddressAllowedForWebsite($billingAddress, (int)$this->getStoreId())) {
957+
958+
if ($this->isAddressAllowedForWebsite($billingAddress, (int)$this->getStoreId())) {
957959
$this->setBillingAddress($billingAddress);
958960
}
959961
}

dev/tests/integration/testsuite/Magento/Quote/Model/QuoteTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
use Magento\Framework\App\Config\ConfigResource\ConfigInterface;
2323
use Magento\Framework\App\Config\ReinitableConfigInterface;
2424
use Magento\Store\Model\StoreManagerInterface;
25+
2526
/**
2627
* @SuppressWarnings(PHPMD.CouplingBetweenObjects)
2728
*/

0 commit comments

Comments
 (0)