Skip to content

Commit

Permalink
Merge pull request #10744 from JMAConsulting/CRM-20942
Browse files Browse the repository at this point in the history
CRM-20942: Email location type must be 'primary' in profile or user creation won't work for event
  • Loading branch information
colemanw authored Aug 4, 2017
2 parents 0efad9e + e13b133 commit ec54f3e
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions CRM/Event/Form/Registration.php
Original file line number Diff line number Diff line change
Expand Up @@ -791,12 +791,11 @@ public function confirmPostProcess($contactID = NULL, $contribution = NULL, $pay
}

// we should use primary email for
// 1. free event registration.
// 2. pay later participant.
// 3. waiting list participant.
// 4. require approval participant.
// 1. pay later participant.
// 2. waiting list participant.
// 3. require approval participant.
if (!empty($this->_params['is_pay_later']) ||
$this->_allowWaitlist || $this->_requireApproval || empty($this->_values['event']['is_monetary'])
$this->_allowWaitlist || $this->_requireApproval
) {
$mail = 'email-Primary';
}
Expand Down

0 comments on commit ec54f3e

Please sign in to comment.