dev/core#4026 Fix failure to save membership data on submit when membership type changed #29355
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Overview
dev/core#4026 Fix failure to save membership data on submit when membership type changed
This also fixes php8.2 issues with the form
Before
For full steps go to https://lab.civicrm.org/dev/core/-/issues/4026
In my testing I created 2 custom data groups extending membership, one extending the type 'student' and one extending the type ' and trying switching between the 2 membership types on edit - checking what was in the email receipt & what displayed when re-viewing - as per the reproduction steps the value did not update on the first save
After
fixed
Technical Details
There is already a WIP PR at #25215 by @braders & in review @larssandergreen identified 2 issues on that PR which also needed to be addressed in this PR
Comments
I worked on this over #29348 which is in the PR but I expect that to be merged & then I can rebase out