civicrm_contribution_recur.is_email_receipt is ignored
Overview
The recur table has a is_email_receipt
column. To me this means that this is a per-recurring-contrib preference, but this does not appear to be honoured.
Reproduction steps
(I've written a test in a PR to follow.)
- Create a contribution recur record with
is_email_receipt = 1
- add a completed contrib
- expect an email, don't get one.
Expected behaviour
I think the behaviour should be:
- was
is_email_receipt
passed in to the API call? If so, use that.
if not... - is the contrib part of a recurring contribution, and is the recur record's
is_email_receipt
set (to 0 or 1)? If so, use that.
if not... - is the contrib linked to a contribution page? If so, use the contribution page's setting.
if not... - send one by default
Environment information
- CiviCRM: _Master @ 38891c5d