Skip to content

Commit 98bf900

Browse files
author
Oleksandr Iegorov
committed
MAGETWO-99451: Custom customer address attribute values are empty when address is changed in admin checkout
1 parent 76286a0 commit 98bf900

File tree

1 file changed

+10
-0
lines changed
  • app/code/Magento/Sales/view/adminhtml/templates/order/create/form

1 file changed

+10
-0
lines changed

app/code/Magento/Sales/view/adminhtml/templates/order/create/form/address.phtml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,16 @@
66

77
// @codingStandardsIgnoreFile
88

9+
/**
10+
* @var \Magento\Customer\Model\ResourceModel\Address\Collection $addressCollection
11+
*/
12+
$addressCollection = $block->getData('customerAddressCollection');
13+
14+
$addressArray = [];
15+
if ($block->getCustomerId()) {
16+
$addressArray = $addressCollection->setCustomerFilter([$block->getCustomerId()])->toArray();
17+
}
18+
919
/**
1020
* @var \Magento\Sales\ViewModel\Customer\AddressFormatter $customerAddressFormatter
1121
*/

0 commit comments

Comments
 (0)