-
-
Notifications
You must be signed in to change notification settings - Fork 824
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#28: Don't send scheduled reminders for event templates #16311
event#28: Don't send scheduled reminders for event templates #16311
Conversation
(Standard links)
|
tests/phpunit/api/v3/JobTest.php
Outdated
|
||
$this->callAPISuccess('job', 'send_reminder', []); | ||
$successfulCronCount = CRM_Core_DAO::singleValueQuery("SELECT count(*) FROM civicrm_action_log"); | ||
echo "cronCount:" . $successfulCronCount; |
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.
@MegaphoneJon can you remove this?
tests/phpunit/api/v3/JobTest.php
Outdated
$this->callAPISuccess('job', 'send_reminder', []); | ||
$successfulCronCount = CRM_Core_DAO::singleValueQuery("SELECT count(*) FROM civicrm_action_log"); | ||
echo "cronCount:" . $successfulCronCount; | ||
$this->assertEquals($successfulCronCount, 0); |
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 needs to be the other way around the expected value goes first (odd i know)
b537f8f
to
ce317e6
Compare
@MegaphoneJon this looks good -there is a style warning |
ce317e6
to
5056241
Compare
@eileenmcnaughton does that mean merge on pass? |
@MegaphoneJon yes - but it didn't pass |
5056241
to
5b4d40a
Compare
Overview
If you create an event template with a scheduled reminder, and that scheduled reminder is set to go to Additional Participants, the template itself will generate scheduled reminders to the additional participants.
Before
People get emailed erroneously.
After
No erroneous emails.