- //@todo - this is being set from the form to resolve CRM-10188 - an
- // eNotice caused by it not being set @ the front end
- // however, we then get it being over-written with null for backend contributions
- // a better fix would be to set the values in the respective forms rather than require
- // a function being shared by two forms to deal with their respective values
- // moving it to the BAO & not taking the $form as a param would make sense here.
- if (!isset($params['is_email_receipt']) && $isEmailReceipt) {
- $params['is_email_receipt'] = $isEmailReceipt;
- }