-
-
Notifications
You must be signed in to change notification settings - Fork 828
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 email receipt flag for recurring record #19299
Conversation
(Standard links)
|
are the failing tests related? |
@yashodha the 2 membership tests were a once-a-year-bug in the tests I think (also affect the other runs). the other is in the new test but didn't fail locally & could also be a new-years's bug. I've pushed up a cleanup patch which will trigger the tests to run again so we can see |
jenkins test this please |
test this please |
|
@sunilpawar does it fail there locally for you? It didn't for me yesterday - I'm wondering if there is a mysql config in play (@demeritcowboy does this seem familiar?) |
|
||
// pass null value to is_email_receipt | ||
$createParams['is_email_receipt'] = NULL; | ||
$recurring1 = CRM_Contribute_BAO_ContributionRecur::add($createParams); |
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.
I think the test failure is just that the add() function doesn't take this type of params. The params format seems intended for the api which converts relative dates like 'yesterday' into actual dates. If you give that to add() then it tries to literally insert 'yesterday' into a date field.
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.
Ok - I fixed it up to call the api - hopefully it passes now
added test case
5d066b1
to
ae16be8
Compare
Overview
Reviewer's commit of #19210