X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=CRM%2FContribute%2FBAO%2FContribution%2FUtils.php;h=f4b958f98d16d21531112566da4de6fae9fe3dfe;hb=24f8127938dec80960d388e50fd5b89aa450b494;hp=07451ee64b5b6a63568f4319b49c29a9ed9c8e03;hpb=3803f46d163c3890089539c99e683fb596b457bf;p=civicrm-core.git diff --git a/CRM/Contribute/BAO/Contribution/Utils.php b/CRM/Contribute/BAO/Contribution/Utils.php index 07451ee64b..f4b958f98d 100644 --- a/CRM/Contribute/BAO/Contribution/Utils.php +++ b/CRM/Contribute/BAO/Contribution/Utils.php @@ -62,6 +62,8 @@ class CRM_Contribute_BAO_Contribution_Utils { $fieldTypes = NULL ) { CRM_Core_Payment_Form::mapParams($form->_bltID, $form->_params, $paymentParams, TRUE); + $isTest = ($form->_mode == 'test') ? 1 : 0; + $lineItems = $form->_lineItem; $contributionType = new CRM_Financial_DAO_FinancialType(); if (isset($paymentParams['financial_type'])) { @@ -111,7 +113,9 @@ class CRM_Contribute_BAO_Contribution_Utils { NULL, $contactID, $contributionType, - TRUE, TRUE, TRUE + TRUE, TRUE, + $isTest, + $lineItems ); if ($contribution) { @@ -230,7 +234,9 @@ class CRM_Contribute_BAO_Contribution_Utils { NULL, $contactID, $contributionType, - TRUE, TRUE, TRUE + TRUE, TRUE, + $isTest, + $lineItems ); // restore cached values (part of fix for CRM-14354) @@ -307,7 +313,9 @@ class CRM_Contribute_BAO_Contribution_Utils { $contribution = CRM_Contribute_Form_Contribution_Confirm::processContribution($form, $form->_params, $result, $contactID, $contributionType, - TRUE, $pending, TRUE + $pending, TRUE, + $isTest, + $lineItems ); } $form->postProcessPremium($premiumParams, $contribution);