Skip to content

Commit

Permalink
[Ref] Use direct version of participant id
Browse files Browse the repository at this point in the history
ids['Participant'] is taken from the url. It is then passed to loadRelatedObjects
where
https://github.com/civicrm/civicrm-core/blob/0bd5e6bfbe8f339dbe066e3e96e00760c93a57e2/CRM/Contribute/BAO/Contribution.php#L2890
loads an object based on it. We then set ids too the object's id - which is a long way around to
using the paramter we started from. This does that
  • Loading branch information
eileenmcnaughton committed Oct 30, 2020
1 parent a61fabf commit 0d74d91
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CRM/Core/Payment/PayPalIPN.php
Original file line number Diff line number Diff line change
Expand Up @@ -357,7 +357,7 @@ public function main() {
}
$this->single($input, [
'related_contact' => $ids['related_contact'] ?? NULL,
'participant' => !empty($objects['participant']) ? $objects['participant']->id : NULL,
'participant' => $ids['participant'] ?? NULL,
'contributionRecur' => !empty($objects['contributionRecur']) ? $objects['contributionRecur']->id : NULL,
], $objects['contribution']);
}
Expand Down

0 comments on commit 0d74d91

Please sign in to comment.