-
-
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
Fix PHP8 warnings in Participant.tpl #26166
Fix PHP8 warnings in Participant.tpl #26166
Conversation
(Standard links)
|
a3c156c
to
b20313c
Compare
@@ -1740,8 +1740,6 @@ public function buildEventFeeForm($form) { | |||
} | |||
$form->assign('onlinePendingContributionId', $form->get('onlinePendingContributionId')); | |||
|
|||
$form->assign('paid', $form->_isPaidEvent); |
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.
This removal causes a problem since now it never shows the fee selections!
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.
We seem to be back to the fees not appearing again. I see this is moved up to the top, but $form->_isPaidEvent
isn't set until after that.
b20313c
to
20759d3
Compare
Thanks @demeritcowboy, I've pushed a new version addressing those issues. |
I think all the warnings are now good but something isn't getting saved and the resulting participant record shows 0 fees paid and if you go edit the record it appears as though no fees were selected. This seems tricky to get all the side-effects. Classic civi. |
5db72eb
to
da2e68f
Compare
Thanks for the thorough Of course, |
da2e68f
to
bedbeaf
Compare
Split into two PRs, per @eileenmcnaughton. Second PR is #26319 |
jenkins retest this please |
bedbeaf
to
9f512e1
Compare
Think this is good now. |
Thanks @demeritcowboy for bearing with me on this one. In general, price sets seem to do weird things from time to time. |
Big picture I would love to separate the event fees loading form from the participant form - we have done that with others over time - e.g the core payment form. There is a gotcha around qfkeys though that I'm trying to recall |
Before
Lots of warnings on: standalone New Event Registration, Actions - Register participants for event when selecting contacts, New Event Registration for Contact (both live credit card and regular), Delete Event Registration and Edit Event Registration.
Send Notification was not being hidden as intended due to the div having id
notify
, which something else was targeting, at least for me.After
No more warnings.
Send Notification hidden and shown as intended.
Technical Details
Some of this maybe isn't the prettiest, but I think better to check the context in the template rather than, for example, dealing with the three different variables for contact id that may or may not be present across three different classes.