Skip to content

Commit 6cb1593

Browse files
committed
MAGETWO-61907: [Backport] - Updating customer via REST API without address unsets default billing and default shipping address - for 2.1
1 parent 624a245 commit 6cb1593

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/code/Magento/Customer/Model/ResourceModel/CustomerRepository.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -323,7 +323,7 @@ protected function addFilterGroupToCollection(
323323
* @return void
324324
* @throws \Magento\Framework\Exception\InputException
325325
*/
326-
private function updateAddresses(\Magento\Framework\Api\CustomAttributesDataInterface $customer, int $customerId)
326+
private function updateAddresses(\Magento\Framework\Api\CustomAttributesDataInterface $customer, $customerId)
327327
{
328328
if ($customer->getAddresses() !== null) {
329329
if ($customer->getId()) {

0 commit comments

Comments
 (0)