Event Confirmation Email causes fatal error if post-profiles are configured (5.18 regression)
- Setup an Event
- Enable email confirmations
- Configure a post-profile for the online registration
- Ensure that
id=1does NOT exist.
Then register for the event.
Result: fatal error: "Expected one UFGroup but found 0"
[file] => CRM/Event/BAO/Event.php [line] => 1155 [function] => getFrontEndTitle [class] => CRM_Core_BAO_UFGroup [type] => :: [args] => Array (  => 1 )
sendEmail, the code assumes that the postProfile is formatted the same as preProfile, but because we can have multiple postProfiles (and only one preProfile), the postProfile is an array.