X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=api%2Fv3%2FPayment.php;h=1b96697a30a308970cd6a9dcc2f4d95dd7a58c04;hb=3c53c5df46bccc842a5fe6bbcf2c89bb5607edf5;hp=4c63037a9d94609f7158110c05784067138ba18f;hpb=7aff79df3dade9c96bf40e78d25a99ee1270324f;p=civicrm-core.git diff --git a/api/v3/Payment.php b/api/v3/Payment.php index 4c63037a9d..1b96697a30 100644 --- a/api/v3/Payment.php +++ b/api/v3/Payment.php @@ -3,7 +3,7 @@ +--------------------------------------------------------------------+ | CiviCRM version 4.7 | +--------------------------------------------------------------------+ - | Copyright CiviCRM LLC (c) 2004-2016 | + | Copyright CiviCRM LLC (c) 2004-2017 | +--------------------------------------------------------------------+ | This file is a part of CiviCRM. | | | @@ -196,7 +196,7 @@ function civicrm_api3_payment_create(&$params) { } elseif (!empty($trxn)) { // Assign the lineitems proportionally - CRM_Contribute_BAO_Contribution::assignProportionalLineItems($params, $trxn, $contribution); + CRM_Contribute_BAO_Contribution::assignProportionalLineItems($params, $trxn->id, $contribution['total_amount']); } } }