Skip to content

Commit

Permalink
Merge pull request #9326 from eileenmcnaughton/cont_page_null
Browse files Browse the repository at this point in the history
CRM-19478 Handle contribution_page_id = 'null' oddity.
  • Loading branch information
monishdeb authored Oct 27, 2016
2 parents bc0afc0 + 8536e5a commit 3613af4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion CRM/Contribute/BAO/Contribution.php
Original file line number Diff line number Diff line change
Expand Up @@ -2148,7 +2148,8 @@ protected static function repeatTransaction(&$contribution, &$input, $contributi
//CRM-18805 -- Contribution page not recorded on recurring transactions, Recurring contribution payments
//do not create CC or BCC emails or profile notifications.
//The if is just to be safe. Not sure if we can ever arrive with this unset
if (isset($contribution->contribution_page_id)) {
// but per CRM-19478 it seems it can be 'null'
if (isset($contribution->contribution_page_id) && is_numeric($contribution->contribution_page_id)) {
$contributionParams['contribution_page_id'] = $contribution->contribution_page_id;
}

Expand Down

0 comments on commit 3613af4

Please sign in to comment.