Details
-
Type: Bug
-
Status: Done/Fixed
-
Priority: Trivial
-
Resolution: Fixed/Completed
-
Affects Version/s: 3.4.5
-
Fix Version/s: 4.1.0
-
Component/s: None
-
Labels:None
Description
In earlier versions of CiviCRM it was possible to have the CiviCRM included using a Custom Profile for events and it would be set automatically to the participant_role_id by default.
This is gone in 3.4.5 and does not work on the demo system either. To reproduce add Participant Role to a Profile and add the profile to the event. The role should be selected by default if you give a default participant_role in the event settings (which you are forced to do currently).
A fix for this bug is to add the following
+ $this->_defaults['participant_role'] = $this->_defaults['participant_role_id'];
in the setDefaultValues function.