Skip to content

Commit 52d6786

Browse files
committed
MC-17201: Delegated account creation fails with custom attributes present in customer address
1 parent 5223ed0 commit 52d6786

File tree

1 file changed

+13
-11
lines changed

1 file changed

+13
-11
lines changed

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

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -101,11 +101,13 @@ public function storeNewOperation(CustomerInterface $customer, array $delegatedD
101101
}
102102
}
103103
$this->session->setCustomerFormData($customerData);
104-
$this->session->setDelegatedNewCustomerData([
105-
'customer' => $customerData,
106-
'addresses' => $addressesData,
107-
'delegated_data' => $delegatedData,
108-
]);
104+
$this->session->setDelegatedNewCustomerData(
105+
[
106+
'customer' => $customerData,
107+
'addresses' => $addressesData,
108+
'delegated_data' => $delegatedData,
109+
]
110+
);
109111
}
110112

111113
/**
@@ -155,11 +157,11 @@ public function consumeNewOperation()
155157
$customerData = $serialized['customer'];
156158
$customerData['addresses'] = $addresses;
157159

158-
return $this->newFactory->create([
159-
'customer' => $this->customerFactory->create(
160-
['data' => $customerData]
161-
),
162-
'additionalData' => $serialized['delegated_data'],
163-
]);
160+
return $this->newFactory->create(
161+
[
162+
'customer' => $this->customerFactory->create(['data' => $customerData]),
163+
'additionalData' => $serialized['delegated_data'],
164+
]
165+
);
164166
}
165167
}

0 commit comments

Comments
 (0)