Skip to content
Snippets Groups Projects
Commit be2b08d4 authored by eileen's avatar eileen
Browse files

Remove call to loadRelatedObjects

None of the ids loaded in this function are used anymore so we can remove the call to it
The only reference to ids after this line is to contribution page id, which is loaded earlier
parent efbd9747
Branches
Tags
No related merge requests found
......@@ -37,6 +37,7 @@ class CRM_Core_Payment_AuthorizeNetIPN extends CRM_Core_Payment_BaseIPN {
* @return bool|void
*
* @throws \CiviCRM_API3_Exception
* @throws \API_Exception
*/
public function main() {
try {
......@@ -74,9 +75,6 @@ class CRM_Core_Payment_AuthorizeNetIPN extends CRM_Core_Payment_BaseIPN {
throw new CRM_Core_Exception("Could not find contribution recur record: {$ids['ContributionRecur']} in IPN request: " . print_r($input, TRUE));
}
$ids['paymentProcessor'] = $paymentProcessorID;
$contribution->loadRelatedObjects($input, $ids);
// check if first contribution is completed, else complete first contribution
$first = TRUE;
if ($contribution->contribution_status_id == 1) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment