-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
v2.11 fix(Address): Set name from firstname and lastname on update #4224
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Left a question to better understand the context where this is a problem. Thanks Thomas!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm ok with the fix, thanks, Thomas. Just left a couple of questions on the specs.
61891f4
to
f56ab5b
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Left one non-blocking comment. Thanks for taking care of this, @tvdeyen!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me, only left a minor cleanup note but not blocking... thanks!
If use_combined_first_and_last_name_in_address is false (default) and firstname and lastname are given in the changeset (ie. from a form) we need to make sure that name is set from it, otherwise data will be inconsistent. Closes solidusio#4094
f56ab5b
to
a09c84c
Compare
Description
If
use_combined_first_and_last_name_in_address
isfalse
(default in v2.11) andfirstname
andlastname
are given in the changeset (ie. from a form) we need to make sure that name is set from it, otherwise data will be inconsistent.Closes #4094
Checklist: