Skip to content

Commit 30944df

Browse files
committed
ACP2E-2798: Default shipping address is not selected on checkout
1 parent 62791a9 commit 30944df

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@
2323
use Magento\Framework\App\ObjectManager;
2424
use Magento\Framework\Math\Random;
2525
use Magento\Framework\Indexer\IndexerInterface;
26-
use Magento\Framework\Data\Collection;
2726

2827
/**
2928
* Customer model
@@ -552,7 +551,7 @@ public function getAddressesCollection()
552551
$this
553552
)->addAttributeToSelect(
554553
'*'
555-
)->setOrder('default', Collection::SORT_ORDER_DESC);
554+
);
556555
foreach ($this->_addressesCollection as $address) {
557556
$address->setCustomer($this);
558557
}

0 commit comments

Comments
 (0)