Body: <p>Civi 5.4 on CentOS server, PHP 7.4 - some patrons and staff report getting message 'participant is already registered' (from Register for Event) or 'looks like you are already registered..' for events where the 'allow_same_participant_emails'  flag is ON (set to 1). When I test it I do not get the message. Is this a browser caching issue with participant? I also thought of using the patch mentioned in CRM-7604 using build_form hook but cannot access patch from archive (<a href="https://issues.civicrm.org/jira/browse/CRM-7604" rel="nofollow noreferrer">https://issues.civicrm.org/jira/browse/CRM-7604</a>).
   The events are all configured correctly to allow dup email registrants.</p>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2019-11-16T02:51:27.900Z
Comments.Text: I am not sure if this is *the* answer but, there's a problem with EventInfo.php in CRM/Event/Page.   Unlike in Register Event Participant, there is just one error/info message put up in EventInfo.php - if an Event is full, AND the registrant is already registered, whether or not the event allows duplicate emails. the message about being already registered is shown, and NOT the event full message.  The fix is simple; starting at line 323,
Comments.UserDisplayName: Lesley Evensen
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2019-11-16T03:00:15.440Z
Comments.Text: I  found what i think is a problem in CRM/Event/Page/EventInfo.php - if an event is Full AND the contact/user is already registered in it, it only displays the message about the user being already registered. I will add the fix in a following comment here.
Comments.UserDisplayName: Lesley Evensen
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2019-11-16T03:00:48.167Z
Comments.Text: if ($values['event']['allow_same_participant_emails']) {
                $registerUrl = CRM_Utils_System::url('civicrm/event/register',
                "reset=1&id={$values['event']['id']}&cid=0"
              );
              if ($statusMessage == ''){
                $statusMessage = ts('It looks like you are already registered for this event.'). ' ' . ts('You can <a href="%1">register again</a>.', array(1 => $registerUrl));
              }
Comments.UserDisplayName: Lesley Evensen
Tags: <civievent>
Title: Event dup checking applied even though Event configured to allow dup emails
ThreadText: # Event dup checking applied even though Event configured to allow dup emails
  
  (Asked by: username_0 on 2019-11-15)
  
  Civi 5.4 on CentOS server, PHP 7.4 - some patrons and staff report getting message 'participant is already registered' (from Register for Event) or 'looks like you are already registered..' for events where the 'allow\_same\_participant\_emails' flag is ON (set to 1). When I test it I do not get the message. Is this a browser caching issue with participant? I also thought of using the patch mentioned in CRM-7604 using build\_form hook but cannot access patch from archive (<https://issues.civicrm.org/jira/browse/CRM-7604>).
  The events are all configured correctly to allow dup email registrants.
  
  **Tags:** civievent
  
  > **Comments:**
  > **username_0**: I am not sure if this is *the* answer but, there's a problem with EventInfo.php in CRM/Event/Page.   Unlike in Register Event Participant, there is just one error/info message put up in EventInfo.php - if an Event is full, AND the registrant is already registered, whether or not the event allows duplicate emails. the message about being already registered is shown, and NOT the event full message.  The fix is simple; starting at line 323,  
  > **username_0**: I  found what i think is a problem in CRM/Event/Page/EventInfo.php - if an event is Full AND the contact/user is already registered in it, it only displays the message about the user being already registered. I will add the fix in a following comment here.  
  > **username_0**: if ($values['event']['allow_same_participant_emails']) {               $registerUrl = CRM_Utils_System::url('civicrm/event/register',               "reset=1&id={$values['event']['id']}&cid=0"             );             if ($statusMessage == ''){               $statusMessage = ts('It looks like you are already registered for this event.'). ' ' . ts('You can <a href="%1">register again</a>.', array(1 => $registerUrl));             }  
  
  ---
  
  ## 0 answers
  
  