Skip to content

Commit

Permalink
Merge pull request #15301 from seamuslee001/dev_core_1245_2
Browse files Browse the repository at this point in the history
[NFC] Add in code comments about the column default issue with is_ema…
  • Loading branch information
seamuslee001 authored Sep 13, 2019
2 parents 543523b + 55c10ad commit 4a7abef
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CRM/Contribute/BAO/Contribution.php
Original file line number Diff line number Diff line change
Expand Up @@ -4526,6 +4526,10 @@ public static function completeOrder(&$input, &$ids, $objects, $transaction, $re
elseif ($recurContrib && $recurringContributionID) {
//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.
// dev/core#1245 this maybe not the desired effect because the default value for is_email_receipt is set to 0 rather than 1 in
// Instance that had the table added via an upgrade in 4.1
// see also https://github.com/civicrm/civicrm-svn/commit/7f39befd60bc735408d7866b02b3ac7fff1d4eea#diff-9ad8e290180451a2d6eacbd3d1ca7966R354
// https://lab.civicrm.org/dev/core/issues/1245
$values['is_email_receipt'] = $recurContrib->is_email_receipt;
}

Expand Down

0 comments on commit 4a7abef

Please sign in to comment.