From 2fda3ece696fb0bddabcbb45ab9ad2c5896cf2a8 Mon Sep 17 00:00:00 2001 From: Seamus Lee Date: Thu, 12 Dec 2019 06:45:57 +1100 Subject: [PATCH] dev/core#1467 - Multiple participant registration sends only p1 amount to the processor --- CRM/Event/Form/Registration.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/CRM/Event/Form/Registration.php b/CRM/Event/Form/Registration.php index a4e3be15a7..0b0ee041a4 100644 --- a/CRM/Event/Form/Registration.php +++ b/CRM/Event/Form/Registration.php @@ -703,8 +703,11 @@ class CRM_Event_Form_Registration extends CRM_Core_Form { // CRM-10032 $this->processFirstParticipant($participant->id); } - $this->_params['participantID'] = $participant->id; - $this->set('primaryParticipant', $this->_params); + + if (!empty($this->_params['is_primary'])) { + $this->_params['participantID'] = $participant->id; + $this->set('primaryParticipant', $this->_params); + } CRM_Core_BAO_CustomValueTable::postProcess($this->_params, 'civicrm_participant', -- 2.25.1