Skip to content
Snippets Groups Projects
Commit 12171c0e authored by bgm's avatar bgm Committed by bgm
Browse files

Event Cart: honor the allow_same_participant_emails setting

parent ee22e172
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