-
Notifications
You must be signed in to change notification settings - Fork 9.4k
Fix Customer custom attributes lost after save #17968
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Hi @Thundar. Thank you for your contribution
For more details, please, review the Magento Contributor Assistant documentation |
Hey @Thundar. Thank you for the contribution. I have a question though. As far as I can see |
…d customer address
Hello @slavvka , thank you for your answer and the hints. They makes sense. The Address model benefits of a custom |
Hey @Thundar. You are right. Thank you for the contribution. Would you mind to port the PR to 2.3 as well? You could do it now or after this PR is merged with the special tool. |
Hi @slavvka, thank you for the review. |
Hi @Thundar. Thank you for your contribution. Please, consider to port this solution to 2.3 release line. |
Description
The customer model has an attribute
attribute_set_id
that links to its attribute set. It is used while saving, as there is a check to see if its attributes are in the set or not, using this link.We want to avoid a
null
attribute_set_id
.Fixed Issues
Manual testing scenarios
No regression manual test:
6. Programmatically load the customer, add a different not-yet-defined attribute to customer (e.g.
setNotYetDefined(1)
) and save directly using the model.7. Reload the customer: the custom value is still not lost, while
not_yet_defined
is lost.Contribution checklist