-
-
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
[Update Subscription Form] Align UpdateSubscription to more recent practices #29580
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
🤖 Thank you for contributing to CiviCRM! ❤️ We will need to test and review this PR. 👷 Introduction for new contributors...
Quick links for reviewers...
|
eileenmcnaughton
force-pushed
the
payment_object_3
branch
from
March 2, 2024 02:27
b35c70e
to
26cc995
Compare
civibot, test this please |
eileenmcnaughton
force-pushed
the
payment_object_3
branch
2 times, most recently
from
March 2, 2024 19:29
3a212a2
to
ec9c0ad
Compare
@civicrm-builder retest this please |
All handled by parent preProcess
This is in line with civicrm#29228 and civicrm#29241 and already converted forms and 1) handles localised money in custom fields 2) reduces notices 3) calls less legacy code
eileenmcnaughton
force-pushed
the
payment_object_3
branch
from
March 3, 2024 00:10
ec9c0ad
to
9ab0b83
Compare
eileenmcnaughton
force-pushed
the
payment_object_3
branch
from
March 3, 2024 00:35
9ab0b83
to
6cb7280
Compare
eileenmcnaughton
changed the title
Align UpdateSubscription to more recent practices
[Update Subscription Form] Align UpdateSubscription to more recent practices
Mar 5, 2024
thanks @mattwire |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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
This attempts to address https://github.com/civicrm/civicrm-core/pull/28617/files#diff-c683b948c8375b8bcc28cea8d54c2210bf8e94e8229b151666c94db370970b36L77-R105 of the stale cleanup by by @mattwire by using some of the techniques we have worked on in the meantime
Before
notices
After
The goal is that
getMembershipID()
should be reliable &getMembershipValue()
should be adequate to retrieve an assign a value - since this uses apiv4 rather than BAO values we need to ensure db escaping (also best practice)Technical Details
This also applies the way of handling custom data we have been working on in similar PRs to use the preferred function at hte php level & ensure the parameters are passed at the tpl level https://github.com/civicrm/civicrm-core/pulls?q=is%3Apr+is%3Aopen+php8.2
Comments
I haven't given this a proper spin yet