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

Event API: 'returnFirst' for civicrm_event_get does not work

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Major
    • Resolution: Fixed/Completed
    • Affects Version/s: 2.1
    • Fix Version/s: 2.2.0
    • Component/s: CiviEvent
    • Labels:
      None

      Description

      For the event API: the parameter 'returnFirst' is ignored.

      This is caused by a typo in api/v2/Event.php, civicrm_event_get, line 119/120:

      if ( count( $event ) != 1 &&
      ! $event['returnFirst'] ) {

      This should read:

      if ( count( $event ) != 1 &&
      ! $params['returnFirst'] ) {

        Attachments

          Activity

            People

            • Assignee:
              kiran.jagtap Kiran Jagtap
              Reporter:
              mreinsch Michael Reinsch
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: