Skip to content

Commit

Permalink
Event Cart: honor the allow_same_participant_emails setting
Browse files Browse the repository at this point in the history
  • Loading branch information
mlutfy committed May 1, 2019
1 parent ee22e17 commit 12171c0
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions CRM/Event/Cart/Form/Checkout/ParticipantsAndPrices.php
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,11 @@ public function validate() {
}
}

// Validate if participant is already registered
if ($event_in_cart->event->allow_same_participant_emails) {
continue;
}

foreach ($event_in_cart->participants as $mer_participant) {
$participant_fields = $fields['event'][$event_in_cart->event_id]['participant'][$mer_participant->id];
//TODO what to do when profile responses differ for the same contact?
Expand Down

0 comments on commit 12171c0

Please sign in to comment.