Skip to content

Commit

Permalink
[Ref] Simplify params
Browse files Browse the repository at this point in the history
As with
0d74d91

pass the retrieved parameters to the single function rather than the id of the
object retrieved based on them
  • Loading branch information
eileenmcnaughton committed Nov 1, 2020
1 parent 5a8489b commit 29f61c2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions CRM/Core/Payment/PayPalProIPN.php
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 29f61c2

Please sign in to comment.