-
-
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
Event confirm - (very) minor cleanup + test #15010
Conversation
I've just started delving into this & have 1) added a test 2) removed an assign that is ALSO done in the sendMail function - ie participantID - this is tested 3) removed a pass-by-reference that I checked was not required
(Standard links)
|
@@ -928,7 +928,6 @@ public function postProcess() { | |||
|
|||
//send mail to primary as well as additional participants. | |||
$this->assign('contactID', $contactId); | |||
$this->assign('participantID', $participantID); |
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.
@eileenmcnaughton is the participantID field exposed on any confirm step or thank you step form or is this assign just about the smarty email template?
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.
yeah after this line the only remaining thing that happens is calling sendEmail + it iterates through multiple participantIDs so it would be the 'last one'
Changes make sense here and are well backed up by a unit test adding MOP |
Failures are due to test changes - ie I set is_email_confirm = 1 & need to adjust other tests to 'cope' |
ug - they pass in isolation.... a static is in play :-( |
Overview
Preliminary cleanup & test as I delve into this code
Before
Less tested
After
More tested
Technical Details
Comments