Skip to content

Commit c3d95bd

Browse files
MAGETWO-91760: Custom address attributes displays with wrong value on checkout
- Fixed add label for custom attributes
1 parent 92e34d7 commit c3d95bd

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

app/code/Magento/Checkout/Plugin/Block/AbstractResetCheckoutConfig.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,8 @@ public function __construct(
5151
protected function getSerializedCheckoutConfig($subject, $result)
5252
{
5353
$resultArray = $data = $this->serializer->unserialize($result);
54-
$customerAddresses = $resultArray['customerData']['addresses'];
54+
$customerAddresses = isset($resultArray['customerData']['addresses'])
55+
? $resultArray['customerData']['addresses'] : [];
5556
$hasAtLeastOneOptionAttribute = false;
5657

5758
if (is_array($customerAddresses) && !empty($customerAddresses)) {

0 commit comments

Comments
 (0)