projects
/
civicrm-core.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1a39ad7
)
dev/core#1467 - Multiple participant registration sends only p1 amount to the processor
author
Seamus Lee
<seamuslee001@gmail.com>
Wed, 11 Dec 2019 19:45:57 +0000
(06:45 +1100)
committer
Seamus Lee
<seamuslee001@gmail.com>
Wed, 11 Dec 2019 19:45:57 +0000
(06:45 +1100)
CRM/Event/Form/Registration.php
patch
|
blob
|
blame
|
history
diff --git
a/CRM/Event/Form/Registration.php
b/CRM/Event/Form/Registration.php
index a4e3be15a7b8beabcf292f4429ba4d8236dca911..0b0ee041a4a2d2a1ebbe773601e514aa980f6e7a 100644
(file)
--- 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',