CRM_Event_Form_Registration_Register::checkProfileComplete($fields, $errors, $self->_eventId);
//Additional Participant can also register for an event only once
- $isRegistered = CRM_Event_Form_Registration_Register::checkRegistration($fields, $self, TRUE);
- if ($isRegistered) {
- if ($self->_values['event']['allow_same_participant_emails']) {
- $errors['_qf_default'] = ts('A person is already registered for this event.');
- }
- else {
+ if (!$self->_values['event']['allow_same_participant_emails']) {
+ $isRegistered = CRM_Event_Form_Registration_Register::checkRegistration($fields, $self, TRUE);
+ if ($isRegistered) {
$errors["email-{$self->_bltID}"] = ts('A person with this email address is already registered for this event.');
}
}