-
-
Notifications
You must be signed in to change notification settings - Fork 825
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
CRM-21711 When updating multiple memberships thru a contribution page custom fields are only updated on one #11586
Conversation
jenkins, test this please |
There are tests for that form submission in CRM_Contribution_Form_ContributeTest - would be good to get a test on it |
@alifrumin when you finish writing the test could you please rebase & squash the commits on this PR into one commit? That will also get rid of that pesky merge commit that snuck in. Thanks. |
7f3e80f
to
49492bb
Compare
Jenkins test this please |
@jitendrapurohit pls review |
@alifrumin any chance you could do @jitendrapurohit's one in return? #10496 (it's pretty straight forward - probably only about 20 mins to do) |
Happy to I will look at it now |
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.
Tested create and renewal of multiple memberships from the contribution page and this change seems to be providing the correct custom value for all the chosen membership on the Main page.
Merging based on @jitendrapurohit's testing. Code looks sensible & I detect a minor clean up plus.... UNIT TEST |
Thank you |
Overview
If a user is renewing multiple memberships on one contribution page and that contribution page also has a profile with custom fields on the membership the custom fields are only updated on one membership when they should be updated on all.
Before
When you are renewing or creating multiple memberships thru a front facing contribution page custom fields are only updated on one membership.
After
When you are renewing or creating multiple memberships thru a front facing contribution page custom fields are updated on ALL memberships.
Technical Details
moves the updating of custom fields into the foreach
Comments
I intend to write a test for this as a part of a separate pr