}
}
else {
- $returnProperties = [];
- $fields = CRM_Contact_BAO_Contact::exportableFields('All', TRUE, TRUE);
- foreach ($fields as $key => $var) {
- if ($key && (substr($key, 0, 6) != 'custom')) {
- //for CRM=952
- $returnProperties[$key] = 1;
- }
- }
-
- $returnProperties = array_merge($returnProperties, $processor->getAdditionalReturnProperties());
-
- if ($queryMode != CRM_Contact_BAO_Query::MODE_CONTACTS) {
- // unset non exportable fields for components
- $nonExpoFields = array(
- 'groups',
- 'tags',
- 'notes',
- 'contribution_status_id',
- 'pledge_status_id',
- 'pledge_payment_status_id',
- );
- foreach ($nonExpoFields as $value) {
- unset($returnProperties[$value]);
- }
- }
+ $returnProperties = $processor->getDefaultReturnProperties();
}
if ($mergeSameAddress) {
}
if ($this->getQueryMode() === CRM_Contact_BAO_Query::MODE_PLEDGE) {
$componentSpecificFields = array_merge($componentSpecificFields, CRM_Pledge_BAO_Query::extraReturnProperties($this->getQueryMode()));
+ unset($componentSpecificFields['contribution_status_id']);
+ unset($componentSpecificFields['pledge_status_id']);
+ unset($componentSpecificFields['pledge_payment_status_id']);
}
if ($this->getQueryMode() === CRM_Contact_BAO_Query::MODE_CASE) {
$componentSpecificFields = array_merge($componentSpecificFields, CRM_Case_BAO_Query::extraReturnProperties($this->getQueryMode()));
}
if ($this->getQueryMode() === CRM_Contact_BAO_Query::MODE_CONTRIBUTE) {
$componentSpecificFields = array_merge($componentSpecificFields, CRM_Contribute_BAO_Query::softCreditReturnProperties(TRUE));
+ unset($componentSpecificFields['contribution_status_id']);
}
return array_merge(array_fill_keys($missing, 1), $componentSpecificFields);
}