CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviEvent (Moderator: Yashodha Chaku) »
  • User registering other people cannot do multiple registrations
Pages: [1]

Author Topic: User registering other people cannot do multiple registrations  (Read 923 times)

kathkeating

  • I’m new here
  • *
  • Posts: 10
  • Karma: 0
  • CiviCRM version: 4.0.4
  • CMS version: Joomla 1.6.1 +
  • MySQL version: 5
  • PHP version: 5
User registering other people cannot do multiple registrations
August 19, 2011, 12:03:06 pm
CiviCRM 4.0.4, Joomla 1.6.1

Our CiviCRM contacts are PARENTS who are registering their CHILDREN for classes. The PARENT will never to be registered for the class, however they are the person filling out the registration form.

We have forced the "register another participant" path on the registration form. This appears to be done by simply passing in cid=0 on the URL (Joomla).  We've done this.  Our Event deduping is set up as First Name, Last Name and Email as normal.

Code: [Select]
Let's say that PARENT John Smith wants to register Susie Smith for a painting class. So he does this.  Susie's registration gets saved.
The next day Jenny Smith is jealous of Susie and she wants to be in the class too. So John Smith tries to register Jenny.  John Smith cannot register Jenny because he gets the error "Oops. It looks like you are already registered for this event".

This situation should not happen.  The "register another participant" has been forced so the form is empty.  The contact info entered is NOT a participant for this event yet. The only similarity is that the person filling out the form is the same person.  However, that person is NOT registering themselves.

I do see in the Register postProcess() method that the params pass through for the contact being registered contains the contact_id of the PARENT.

This appears to be bug.  It definitely should not be working this way. 

Either:
1) The "register another participant" is not properly being forced by simply adding cid=0 to the URL, or
2) Determining the correct contact/participant is not done properly before issuing that "already registered" error.

Has anyone else found a way to work around this to force that first "primary participant" registration to work properly to NOT be tied to the contact submitting it.

Thanks for any pointers you can give!

kathkeating

  • I’m new here
  • *
  • Posts: 10
  • Karma: 0
  • CiviCRM version: 4.0.4
  • CMS version: Joomla 1.6.1 +
  • MySQL version: 5
  • PHP version: 5
Re: User registering other people cannot do multiple registrations
August 19, 2011, 12:34:08 pm
UPDATE: passing cid=0 definitely clears the contact_id so that the first person is registered as a "different person". HOWEVER....

It seems that the "primary participant" is always verified through the STRICT matching rules.  Additional participants are verified through the FUZZY matching rules. 

Code: [Select]
$level  = ( $isAdditional ) ? 'Fuzzy' : 'Strict';
So, for others caught in the same hole as me, I suppose the only way to fix this is to set your "strict" rules to be the same as your "fuzzy" rules.  For me this included adding "first name" and "last name" matching to the Strict rules.

At the end of the day, this code is probably a bug.  If we say we're registering a different participant the code shouldn't apply different matching rules based on what order we place the participants into the form. That's just not "logical" to users.

IMHO, this is a bug. :-) Luckily I'm able to work around it ok.

kenlyle

  • I post occasionally
  • **
  • Posts: 116
  • Karma: 7
Re: User registering other people cannot do multiple registrations
December 14, 2011, 04:34:30 pm
Where exactly is this code?  I am prepared to disable the checking/matching, if I can find it.  Thanks!

Yashodha Chaku

  • Forum Godess / God
  • Ask me questions
  • *****
  • Posts: 755
  • Karma: 57
    • CiviCRM
Re: User registering other people cannot do multiple registrations
December 14, 2011, 08:22:50 pm
CRM/Event/Form/Registration/Register.php

-Yashodha
Found this reply helpful? Contribute NOW and help us improve CiviCRM with the Make it Happen! initiative.

kenlyle

  • I post occasionally
  • **
  • Posts: 116
  • Karma: 7
Re: User registering other people cannot do multiple registrations
December 14, 2011, 09:01:14 pm
Great, Thanks.  I had actually taken the initiative to look, and burrowed down to
administrator/components/com_civicrm/civicrm/CRM/Event/Form/Registration/AdditionalParticipant.php - This seems to be where the troublesome "duplicate registrant" checking is happening.  I'd like to try to disable that, and see if I can get my multiple registration working.  I am having some trouble with my very basic editor, matching the { and } in the code.  It seems to start around line 380, but there seems to be a lot going on.  Can you give me a clue, please?  Thanks.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviEvent (Moderator: Yashodha Chaku) »
  • User registering other people cannot do multiple registrations

This forum was archived on 2017-11-26.