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

API - participant return values don't worked - dropped in BAO

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Minor
    • Resolution: Fixed/Completed
    • Affects Version/s: 3.4.0
    • Fix Version/s: 3.4.1
    • Component/s: CiviCRM API
    • Labels:
      None

      Description

      Test that demonstrates return values don't work. Participant, Contribute, Member , Pledge all leverage the same BAO query BUT CRM_Contact_BAO_Query drops participant, pledge & case return values, not sure why

      foreach ($this->_fields as $name => $field) {

      //skip component fields
      if ( ( substr( $name, 0, 12 ) == 'participant_' ) ||
      ( substr( $name, 0, 7 ) == 'pledge_' ) ||
      ( substr( $name, 0, 5 ) == 'case_' ) )

      { continue; }

      /*

      • Check Participant Get respects return properties
        */
        function testGetWithReturnProperties() { $params = array( 'contact_id' => $this->_contactID, 'version' => $this->_apiversion, 'return.status_id' => 1, 'return.participant_status_id' => 1, ); $result = & civicrm_api3_participant_get($params); $this->assertArrayHasKey('participant_status_id', $result['values'][$result['id']]); }

        Attachments

          Activity

            People

            • Assignee:
              eileen Eileen McNaughton
              Reporter:
              eileen Eileen McNaughton
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: