Uploaded image for project: 'CiviCRM'
  1. CiviCRM
  2. CRM-3800

civicrm_participant_search does not include event_type, participant_status and participant_role in result

    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.

        Attachments

          Activity

            People

            • Assignee:
              sunil Sunil Pawar
              Reporter:
              mreinsch Michael Reinsch
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: