Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove IPN reference to _relatedObjects, deprecate property #18895

Merged
merged 1 commit into from
Nov 2, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 11 additions & 1 deletion CRM/Contribute/BAO/Contribution.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,19 @@ class CRM_Contribute_BAO_Contribution extends CRM_Contribute_DAO_Contribution {
public static $_trxnIDs = NULL;

/**
* Field for all the objects related to this contribution
* Field for all the objects related to this contribution.
*
* This is used from
* 1) deprecated function transitionComponents
* 2) function to send contribution receipts _assignMessageVariablesToTemplate
* 3) some invoice code that is copied from 2
* 4) odds & sods that need to be investigated and fixed.
*
* However, it is no longer used by completeOrder.
*
* @var \CRM_Member_BAO_Membership|\CRM_Event_BAO_Participant[]
*
* @deprecated
*/
public $_relatedObjects = [];

Expand Down
1 change: 0 additions & 1 deletion CRM/Core/Payment/AuthorizeNetIPN.php
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,6 @@ public function main($component = 'contribute') {
$contribution->amount_level = $objects['contribution']->amount_level;
$contribution->address_id = $objects['contribution']->address_id;
$contribution->campaign_id = $objects['contribution']->campaign_id;
$contribution->_relatedObjects = $objects['contribution']->_relatedObjects;

$objects['contribution'] = &$contribution;
}
Expand Down