Merge pull request #8119 from eileenmcnaughton/CRM-18303
authorMonish Deb <monish.deb@webaccessglobal.com>
Wed, 13 Apr 2016 11:05:16 +0000 (16:35 +0530)
committerMonish Deb <monish.deb@webaccessglobal.com>
Wed, 13 Apr 2016 11:05:16 +0000 (16:35 +0530)
CRM-18303 call sendConfirmation api from completeOrder to cause reload

1  2 
CRM/Contribute/BAO/Contribution.php
api/v3/Contribution.php
tests/phpunit/CiviTest/CiviUnitTestCase.php
tests/phpunit/api/v3/ContributionTest.php

index 14dd595f458397d5a2460ce584057269046dbdd2,ee66e967b165210148ec2de883645a5eb50925fe..6eaca457d1ee83b1c0e8b3b1f8ab471579bae665
@@@ -4394,12 -4393,9 +4394,9 @@@ WHERE eft.financial_trxn_id IN ({$trxnI
          $values['amount'] = $recurContrib->amount;
          $values['financial_type_id'] = $objects['contributionType']->id;
          $values['title'] = $source = ts('Offline Recurring Contribution');
-         $domainValues = CRM_Core_BAO_Domain::getNameAndEmail();
-         $values['receipt_from_name'] = $domainValues[0];
-         $values['receipt_from_email'] = $domainValues[1];
        }
  
 -      if ($recurContrib && $recurContrib->id && !isset($input['is_email_receipt'])) {
 +      if ($recurContrib && $recurringContributionID && !isset($input['is_email_receipt'])) {
          //CRM-13273 - is_email_receipt setting on recurring contribution should take precedence over contribution page setting
          // but CRM-16124 if $input['is_email_receipt'] is set then that should not be overridden.
          $values['is_email_receipt'] = $recurContrib->is_email_receipt;
Simple merge