From 7a081b60337c788471207776e2770a9cae6110f9 Mon Sep 17 00:00:00 2001 From: Pratik Joshi Date: Mon, 21 Apr 2014 20:15:56 +0530 Subject: [PATCH] CRM-13973-comment : we don't allow additional participant to record payment --- CRM/Event/Form/ParticipantFeeSelection.php | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/CRM/Event/Form/ParticipantFeeSelection.php b/CRM/Event/Form/ParticipantFeeSelection.php index abc6018588..1573307296 100644 --- a/CRM/Event/Form/ParticipantFeeSelection.php +++ b/CRM/Event/Form/ParticipantFeeSelection.php @@ -197,12 +197,13 @@ class CRM_Event_Form_ParticipantFeeSelection extends CRM_Core_Form { 'isDefault' => TRUE, ); - $buttons[] = array( - 'type' => 'upload', - 'name' => ts('Save and Record Payment'), - 'subName' => 'new' - ); - + if (CRM_Event_BAO_Participant::isPrimaryParticipant($this->_participantId)) { + $buttons[] = array( + 'type' => 'upload', + 'name' => ts('Save and Record Payment'), + 'subName' => 'new' + ); + } $buttons[] = array( 'type' => 'cancel', 'name' => ts('Cancel'), -- 2.25.1