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#28: Don't send scheduled reminders for event templates #16311

Merged

Conversation

MegaphoneJon
Copy link
Contributor

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.

@civibot
Copy link

civibot bot commented Jan 17, 2020

(Standard links)

@civibot civibot bot added the master label Jan 17, 2020

$this->callAPISuccess('job', 'send_reminder', []);
$successfulCronCount = CRM_Core_DAO::singleValueQuery("SELECT count(*) FROM civicrm_action_log");
echo "cronCount:" . $successfulCronCount;
Copy link
Contributor

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?

$this->callAPISuccess('job', 'send_reminder', []);
$successfulCronCount = CRM_Core_DAO::singleValueQuery("SELECT count(*) FROM civicrm_action_log");
echo "cronCount:" . $successfulCronCount;
$this->assertEquals($successfulCronCount, 0);
Copy link
Contributor

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)

@eileenmcnaughton
Copy link
Contributor

@MegaphoneJon this looks good -there is a style warning

@MegaphoneJon MegaphoneJon force-pushed the event-template-reminders branch from ce317e6 to 5056241 Compare January 23, 2020 06:40
@MegaphoneJon
Copy link
Contributor Author

@eileenmcnaughton does that mean merge on pass?

@eileenmcnaughton
Copy link
Contributor

@MegaphoneJon yes - but it didn't pass

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.

3 participants