Skip to content

Commit

Permalink
Fixed issue-21396
Browse files Browse the repository at this point in the history
  • Loading branch information
Dharmeshvaja91 committed Feb 22, 2019
1 parent 0ab0e03 commit 6584286
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/code/Magento/Customer/Block/Address/Grid.php
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,7 @@ private function getAddressCollection(): \Magento\Customer\Model\ResourceModel\A
/** @var \Magento\Customer\Model\ResourceModel\Address\Collection $collection */
$collection = $this->addressCollectionFactory->create();
$collection->setOrder('entity_id', 'desc')
->addFieldToFilter('entity_id', array('nin' => array($this->getDefaultBilling(), $this->getDefaultShipping())))
->setCustomerFilter([$this->getCustomer()->getId()]);
$this->addressCollection = $collection;
}
Expand Down

0 comments on commit 6584286

Please sign in to comment.