Skip to content

Commit 0690ed4

Browse files
stkorfnikshostko
authored andcommitted
MAGETWO-69111: Customer custom address attributes lost after changing contact information and password
- Add attribute set id in customer address
1 parent 68a40c9 commit 0690ed4

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

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

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -378,4 +378,14 @@ private function getAttributeList()
378378
}
379379
return $this->attributeList;
380380
}
381+
382+
/**
383+
* Retrieve attribute set id for customer address.
384+
*
385+
* @return int
386+
*/
387+
public function getAttributeSetId()
388+
{
389+
return parent::getAttributeSetId() ?: AddressMetadataInterface::ATTRIBUTE_SET_ID_ADDRESS;
390+
}
381391
}

0 commit comments

Comments
 (0)