Skip to content

Commit 6584286

Browse files
Fixed issue-21396
1 parent 0ab0e03 commit 6584286

File tree

1 file changed

+1
-0
lines changed
  • app/code/Magento/Customer/Block/Address

1 file changed

+1
-0
lines changed

app/code/Magento/Customer/Block/Address/Grid.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -237,6 +237,7 @@ private function getAddressCollection(): \Magento\Customer\Model\ResourceModel\A
237237
/** @var \Magento\Customer\Model\ResourceModel\Address\Collection $collection */
238238
$collection = $this->addressCollectionFactory->create();
239239
$collection->setOrder('entity_id', 'desc')
240+
->addFieldToFilter('entity_id', array('nin' => array($this->getDefaultBilling(), $this->getDefaultShipping())))
240241
->setCustomerFilter([$this->getCustomer()->getId()]);
241242
$this->addressCollection = $collection;
242243
}

0 commit comments

Comments
 (0)