// CRM-10032
$this->processFirstParticipant($participant->id);
}
+ $this->_params['participantID'] = $participant->id;
+ $this->set('primaryParticipant', $this->_params);
CRM_Core_BAO_CustomValueTable::postProcess($this->_params,
'civicrm_participant',
$paymentPartcipant = CRM_Event_BAO_ParticipantPayment::create($paymentParams);
}
- //set only primary participant's params for transfer checkout.
- // The concept of contributeMode is deprecated.
- if (($this->_contributeMode == 'checkout' || $this->_contributeMode == 'notify') && !empty($this->_params['is_primary'])) {
- $this->_params['participantID'] = $participant->id;
- $this->set('primaryParticipant', $this->_params);
- }
-
$this->assign('action', $this->_action);
// create CMS user
$isTest = TRUE;
}
+ $primaryParticipant = $this->get('primaryParticipant');
+
+ if (empty($primaryParticipant['participantID'])) {
+ CRM_Core_Error::deprecatedFunctionWarning('This line is not logically reachable.');
+ $primaryParticipant['participantID'] = $registerByID;
+ }
+ //otherwise send mail Confirmation/Receipt
+ $primaryContactId = $this->get('primaryContactId');
+
// for Transfer checkout.
// The concept of contributeMode is deprecated.
if (($this->_contributeMode == 'checkout' ||
$this->_totalAmount > 0
) {
- $primaryParticipant = $this->get('primaryParticipant');
-
- if (empty($primaryParticipant['participantID'])) {
- $primaryParticipant['participantID'] = $registerByID;
- }
-
//build an array of custom profile and assigning it to template
$customProfile = CRM_Event_BAO_Event::buildCustomProfile($registerByID, $this->_values, NULL, $isTest);
if (count($customProfile)) {
}
}
else {
- //otherwise send mail Confirmation/Receipt
- $primaryContactId = $this->get('primaryContactId');
//build an array of cId/pId of participants
$additionalIDs = CRM_Event_BAO_Event::buildCustomProfile($registerByID,