Skip to content

Commit

Permalink
Merge pull request #14174 from mlutfy/cart-allow-same-participant
Browse files Browse the repository at this point in the history
Event Cart: honor the allow_same_participant_emails setting
  • Loading branch information
eileenmcnaughton authored May 1, 2019
2 parents 0908f97 + 12171c0 commit fbbb7e9
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 fbbb7e9

Please sign in to comment.