No event registration confirmation email sent for free events
Overview
Upon registering for a free event, no confirmation email is sent.
Reproduction steps
- Register for an event configured with
Paid Event
= No andSend Confirmation Email
= Yes.
Current behaviour
No confirmation email is sent.
Expected behaviour
A confirmation email is sent.
Environment information
CiviCRM: 5.69.1
Comments
Regression introduced by https://github.com/civicrm/civicrm-core/commit/36723fe908973f72dc5cd57a249ee236fcfec868
Specifically, the Issue is caused by a change to CRM_Event_Form_Registration::processRegistration:
- From:
if ($this->_contributeMode != 'checkout' || $this->_contributeMode != 'notify')
- To:
if ($this->getPaymentProcessorObject()->supports('noReturn'))
This returns FALSE if there is no payment processor, causing the email to not be sent.