-
-
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
dev/1640 New feature - adds a checkbox to the update contribution status form to determine if a receipt is sent #16742
Conversation
(Standard links)
|
@eileenmcnaughton Don't you think we should add a test here to ensure the working of checkbox and see accordingly if mail is sent or not? Otherwise the change looks good👍 |
@kartik1000 yes - we really do need a test on this - I thought about whether we could squeeze it through without but really
On the bright side there is a test already on the form that could be a starting point CRM_Contribute_Form_Task_StatusTest (if you are feeling keen you could tackle it) I just updated the PR title as it wasn't descriptive. I'm a little unsure about whether this requires documentation as I'm not sure what the current default is - ie if it's currently sending an email & the default here is to still send an email then most users wouldn't notice |
@eileenmcnaughton the default behavior was that it sends out e-mails. The new default is that the checkbox is ticked and therefor would also send out e-mails. |
test this please |
I can tell that this patch has been tested by one of our clients and is now applied in production. |
test this please |
363b74e
to
a7349f8
Compare
$this->_individualId = $this->individualCreate(); | ||
$form = new CRM_Contribute_Form_Task_Status(); | ||
|
||
$mut = new CiviMailUtils($this, TRUE); | ||
$mut->clearMessages(); | ||
$mut->assertMailLogEmpty(); |
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.
Lines 36 and 85 don't hurt but don't really do anything. It would just be testing the mail utils itself not the feature being added. Sorry that might have come from the first version of the chat post where I made a typo.
@demeritcowboy are you able to review this PR and the test? Thanks |
Yep I can take a look. |
|
Overview
Add an option to the update contribution status to send an e-mail receipt or not.
See: https://lab.civicrm.org/dev/core/issues/1640
Before
After
Comments
The code in this bit of PR contains a comment to move to the order api.
I thought about change that but I was unsure because it might affect more than this simple change.