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

Participant Get API pulling 0 results at first, then complete set after second try

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Major
    • Resolution: Incomplete
    • Affects Version/s: 4.5.6
    • Fix Version/s: None
    • Component/s: CiviEvent
    • Labels:
      None
    • Documentation Required?:
      None
    • Funding Source:
      Needs Funding

      Description

      I'm using the v3 API to pull a list of participants for an event record. The call I'm making is:

      {{$result = civicrm_api3( 'participant', 'get', array(
      'event_id' => $event_id,
      'options' => array(
      'limit' => 100,
      ),
      ) );}}

      Usually, this works fine and pulls the participant information that I need. However, sometimes it will pull zero results (which is incorrect) but, on refreshing the theme page that displays the data, it will show the participants. It's like the first time through gets no results but primes the second try to be correct. It does not show zero records after the refresh, at least for a while.

      I cannot regularly recreate this error. As soon as I start pulling down participant records over and over, I don't see the problem show up.

      I know this is not a lot to go on but I'm not sure what else to check or how to reliably reproduce this in a way to show off the issue.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              joshcanhelp Josh Cunningham
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: