Skip to content

Commit

Permalink
Merge pull request #10484 from JMAConsulting/CRM-20706
Browse files Browse the repository at this point in the history
CRM-20706: Notice error on using Contribution.Getfield API
  • Loading branch information
monishdeb authored Jun 13, 2017
2 parents 1839cd1 + 03df80c commit f4f2e6f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/v3/Contribution.php
Original file line number Diff line number Diff line change
Expand Up @@ -356,7 +356,7 @@ function _civicrm_api3_contribution_get_spec(&$params) {

$params['financial_type_id']['api.aliases'] = array('contribution_type_id');
$params['payment_instrument_id']['api.aliases'] = array('contribution_payment_instrument', 'payment_instrument');
$params['contact_id'] = $params['contribution_contact_id'];
$params['contact_id'] = CRM_Utils_Array::value('contribution_contact_id', $params);
$params['contact_id']['api.aliases'] = array('contribution_contact_id');
unset($params['contribution_contact_id']);
}
Expand Down

0 comments on commit f4f2e6f

Please sign in to comment.