Skip to content

Commit add6b82

Browse files
committed
MAGETWO-37609: Change data script
1 parent 64195c5 commit add6b82

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

app/code/Magento/Customer/Model/Resource/Customer.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,15 @@ protected function _saveAddresses(\Magento\Customer\Model\Customer $customer)
202202
}
203203
}
204204
}
205+
//@TODO: find appropriate place
206+
$this->_getWriteAdapter()->update(
207+
$this->getTable('customer_entity'),
208+
[
209+
'default_billing' => $customer->getData('default_billing'),
210+
'default_shipping' => $customer->getData('default_shipping')
211+
],
212+
$this->_getWriteAdapter()->quoteInto('entity_id = ?', $customer->getId())
213+
);
205214

206215
return $this;
207216
}

0 commit comments

Comments
 (0)