Skip to content
Permalink

Comparing changes

This is a direct comparison between two commits made in this repository or its related repositories. View the default comparison for this range or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: civicrm/civicrm-core
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 2f5896d05ad80cab4c77ac07fb8e035c9fcbb780
Choose a base ref
..
head repository: civicrm/civicrm-core
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: a0ebf09f4230069ad8307a33d2a5e884b4c3034c
Choose a head ref
Showing with 1 addition and 8 deletions.
  1. +1 −8 CRM/Event/Form/SelfSvcTransfer.php
9 changes: 1 addition & 8 deletions CRM/Event/Form/SelfSvcTransfer.php
Original file line number Diff line number Diff line change
@@ -278,18 +278,11 @@ public static function checkProfileComplete($fields, &$errors, $self) {
*/
public static function checkRegistration($fields, $self, $contact_id, &$errors) {
// verify whether this contact already registered for this event
$allowSameParticipantEmails = \Civi\Api4\Event::get(FALSE)
->addSelect('allow_same_participant_emails')
->addWhere('id', '=', $self->_event_id)->execute()
->first()['allow_same_participant_emails'];
if ($allowSameParticipantEmails) {
return;
}

$participant = \Civi\Api4\Participant::get(FALSE)
->addSelect('contact_id.display_name')
->addWhere('event_id', '=', $self->_event_id)
->addWhere('contact_id', '=', $contact_id)
->addWhere('event_id.allow_same_participant_emails', '=', FALSE)
->execute()->first();
if ($participant) {
if (array_key_exists('contact_id', $fields)) {