From 29f61c202694539264b33f18e6969c4d00ff7ccf Mon Sep 17 00:00:00 2001 From: eileen Date: Mon, 2 Nov 2020 12:45:36 +1300 Subject: [PATCH] [Ref] Simplify params As with https://github.com/civicrm/civicrm-core/commit/0d74d91cd340b9f1ea2224119c748e372dffe245 pass the retrieved parameters to the single function rather than the id of the object retrieved based on them --- CRM/Core/Payment/PayPalProIPN.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CRM/Core/Payment/PayPalProIPN.php b/CRM/Core/Payment/PayPalProIPN.php index ff8cf081785c..61c86b269e66 100644 --- a/CRM/Core/Payment/PayPalProIPN.php +++ b/CRM/Core/Payment/PayPalProIPN.php @@ -459,8 +459,8 @@ public function main() { $this->single($input, [ 'related_contact' => $ids['related_contact'] ?? NULL, - 'participant' => !empty($objects['participant']) ? $objects['participant']->id : NULL, - 'contributionRecur' => !empty($objects['contributionRecur']) ? $objects['contributionRecur']->id : NULL, + 'participant' => $ids['participant'] ?? NULL, + 'contributionRecur' => $ids['contributionRecur'] ?? NULL, ], $objects, FALSE, FALSE); } catch (CRM_Core_Exception $e) {