Skip to content

Commit 5db3632

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 e076de2 commit 5db3632

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -329,12 +329,12 @@ protected function addFilterGroupToCollection(
329329
/**
330330
* Update customer addresses.
331331
*
332-
* @param \Magento\Customer\Api\Data\CustomerInterface $customer
332+
* @param \Magento\Framework\Api\CustomAttributesDataInterface $customer
333333
* @param $customerId
334334
* @return void
335335
* @throws \Magento\Framework\Exception\InputException
336336
*/
337-
private function updateAddresses(\Magento\Customer\Api\Data\CustomerInterface $customer, $customerId)
337+
private function updateAddresses(\Magento\Framework\Api\CustomAttributesDataInterface $customer, $customerId)
338338
{
339339
if ($customer->getAddresses() !== null) {
340340
if ($customer->getId()) {
@@ -367,12 +367,12 @@ private function updateAddresses(\Magento\Customer\Api\Data\CustomerInterface $c
367367
/**
368368
* Populate customer model with secure data.
369369
*
370-
* @param \Magento\Customer\Api\Data\CustomerInterface $customer
370+
* @param \Magento\Framework\Api\CustomAttributesDataInterface $customer
371371
* @param $passwordHash
372372
* @param $customerModel
373373
*/
374374
private function populateCustomerModelWithSecureData(
375-
\Magento\Customer\Api\Data\CustomerInterface $customer,
375+
\Magento\Framework\Api\CustomAttributesDataInterface $customer,
376376
$passwordHash,
377377
$customerModel
378378
) {

0 commit comments

Comments
 (0)