From e13b133314a18edfbcaf305663a92a2600d503f7 Mon Sep 17 00:00:00 2001 From: "deb.monish" Date: Mon, 24 Jul 2017 21:52:04 +0530 Subject: [PATCH] CRM-20942: Email location type must be 'primary' in profile or user creation won't work for event --- CRM/Event/Form/Registration.php | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/CRM/Event/Form/Registration.php b/CRM/Event/Form/Registration.php index 05e90604121a..34d840bd2187 100644 --- a/CRM/Event/Form/Registration.php +++ b/CRM/Event/Form/Registration.php @@ -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'; }