From ea707c1b9d90683a4bc9e5e12a5a16b3ede795da Mon Sep 17 00:00:00 2001 From: Pratik Joshi Date: Thu, 24 Apr 2014 21:51:50 +0530 Subject: [PATCH] CRM-13973 : minor fix --- CRM/Event/Form/Participant.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CRM/Event/Form/Participant.php b/CRM/Event/Form/Participant.php index d92fc89eee..e1709c4b9e 100644 --- a/CRM/Event/Form/Participant.php +++ b/CRM/Event/Form/Participant.php @@ -1436,7 +1436,7 @@ SELECT civicrm_custom_group.name as name, } // if multiple participants are link, consider contribution total amount as the amount Owed - if (CRM_Event_BAO_Participant::isPrimaryParticipant($this->_id)) { + if ($this->_id && CRM_Event_BAO_Participant::isPrimaryParticipant($this->_id)) { $amountOwed = CRM_Core_DAO::getFieldValue('CRM_Contribute_DAO_Contribution', $ids['contribution'], 'total_amount' -- 2.25.1