Skip to content
Snippets Groups Projects
Unverified Commit fbbb7e91 authored by Eileen McNaughton's avatar Eileen McNaughton Committed by GitHub
Browse files

Merge pull request #14174 from mlutfy/cart-allow-same-participant

Event Cart: honor the allow_same_participant_emails setting
parents 0908f97c 12171c0e
Branches
Tags
No related merge requests found
......@@ -151,6 +151,11 @@ class CRM_Event_Cart_Form_Checkout_ParticipantsAndPrices extends CRM_Event_Cart_
}
}
// 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?
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment