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_' ) )
/*
- 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']]); }