From 54334799a1a7d82021cf60b74b73073f0a22249e Mon Sep 17 00:00:00 2001 From: Seamus Lee Date: Fri, 1 Mar 2019 13:46:22 +1100 Subject: [PATCH] Fix the invocation of post hook for ParticipantPayment ensuring that an id is passed in post hook --- CRM/Event/BAO/ParticipantPayment.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CRM/Event/BAO/ParticipantPayment.php b/CRM/Event/BAO/ParticipantPayment.php index 0051038aaa..f84e6b15ac 100644 --- a/CRM/Event/BAO/ParticipantPayment.php +++ b/CRM/Event/BAO/ParticipantPayment.php @@ -71,10 +71,10 @@ class CRM_Event_BAO_ParticipantPayment extends CRM_Event_DAO_ParticipantPayment $participantPayment->find(TRUE); } if ($id) { - CRM_Utils_Hook::post('edit', 'ParticipantPayment', $id, $participantPayment); + CRM_Utils_Hook::post('edit', 'ParticipantPayment', $participantPayment->id, $participantPayment); } else { - CRM_Utils_Hook::post('create', 'ParticipantPayment', NULL, $participantPayment); + CRM_Utils_Hook::post('create', 'ParticipantPayment', $participantPayment->id, $participantPayment); } //generally if people are creating participant_payments via the api they won't be setting the line item correctly - we can't help them if they are doing complex transactions -- 2.25.1