Details
-
Type: Bug
-
Status: Done/Fixed
-
Priority: Major
-
Resolution: Fixed/Completed
-
Affects Version/s: 2.1
-
Fix Version/s: 2.2.0
-
Component/s: CiviCRM API
-
Labels:None
Description
When using civicrm_participant_search from api/v2/Participant, the result omits the fields event_type, participant_status and participant_role.
Those fields are fetched from the database, but the fields fetched are "event_type_id", "participant_status_id" and "participant_role_id". But looking at $query->_element, the expected names are "event_type", "participant_status" and "participant_role" (note the missing "_id").
Changing in CRM/BOA/Event/Query lines 110, 118 and 128 to name those fields as expected fixed this issue for me, but I'm not sure about other side effects.