diff --git a/api/v3/Contribution.php b/api/v3/Contribution.php index 547b9f180f7a..c3f683c827ef 100644 --- a/api/v3/Contribution.php +++ b/api/v3/Contribution.php @@ -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']); }