Skip to content
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

Merged
merged 2 commits into from
Aug 10, 2019

Conversation

eileenmcnaughton
Copy link
Contributor

Overview

Preliminary cleanup & test as I delve into this code

Before

Less tested

After

More tested

Technical Details

  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

Comments

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
@civibot
Copy link

civibot bot commented Aug 10, 2019

(Standard links)

@civibot civibot bot added the master label Aug 10, 2019
@@ -928,7 +928,6 @@ public function postProcess() {

//send mail to primary as well as additional participants.
$this->assign('contactID', $contactId);
$this->assign('participantID', $participantID);
Copy link
Contributor

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?

Copy link
Contributor Author

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'

@seamuslee001
Copy link
Contributor

Changes make sense here and are well backed up by a unit test adding MOP

@eileenmcnaughton
Copy link
Contributor Author

Failures are due to test changes - ie I set is_email_confirm = 1 & need to adjust other tests to 'cope'

@eileenmcnaughton
Copy link
Contributor Author

ug - they pass in isolation.... a static is in play :-(

@eileenmcnaughton eileenmcnaughton merged commit f39da48 into civicrm:master Aug 10, 2019
@eileenmcnaughton eileenmcnaughton deleted the event_inv branch August 10, 2019 22:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants