-- CRM-16198, added aliaa for payment instrument in api
authorPradeep Nayak <pradpnayak@gmail.com>
Tue, 31 Mar 2015 20:24:15 +0000 (01:54 +0530)
committerPradeep Nayak <pradpnayak@gmail.com>
Tue, 31 Mar 2015 20:24:15 +0000 (01:54 +0530)
----------------------------------------
* CRM-16198: Financial Type search fails when searching Contributions using Search builder
  https://issues.civicrm.org/jira/browse/CRM-16198

api/v3/Contribution.php

index dedad7518448c41a5ff80e86ed36901f746c5f23..136a4ea83c4c543a79b8c0c6a5e40a90fa9136ce 100644 (file)
@@ -258,6 +258,7 @@ function _civicrm_api3_contribution_get_spec(&$params) {
     'title' => 'Get Test Contributions?',
   );
   $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']['api.aliases'] = array('contribution_contact_id');
   unset($params['contribution_contact_id']);