CRM-4377 CiviEvent: Other profile option for additional participants

    Details

    • Type: New Feature
    • Status: Done/Fixed
    • Priority: Major
    • Resolution: Fixed/Completed
    • Affects Version/s: 3.0
    • Fix Version/s: 3.0
    • Component/s: CiviEvent
    • Labels:
      None

      Description

      Allow a choice for the profiles to use when registering additional participants. The choices should be:

      1. No profile for additional participants.
      2. The same profiles as for the main participant.
      3. A specific profile for additional participants (which might be one of the two profiles chosen for the main participant).

        Attachments

        1. Picture 5.png
          29 kB
          David Greenberg
        2. Picture 6.png
          36 kB
          David Greenberg

          Activity

          [CRM-4377] CiviEvent: Other profile option for additional participants
          Piotr Szotkowski added a comment -

          The main functionality was implemented in r21847 - additional participants can inherit one or both profiles from the main contact, have one or both different and/or have one or both turned off.

          This was done by (ab)using the civicrm_ufjoin table and introducing a module of CiviEvent_Additional, which holds the profiles for additional participants. If the profiles are missing, CiviEvent uses main contact's profiles (for backward compatibility). If either of these profiles is not active, that profile is turned off.

          Reassigning to Kurund as per chat with Lobo to fix show/hide, which I tried to implement in r21848 and failed (and which is to be ported to jQuery anyway).

          David Greenberg added a comment -

          Confirmation and Thankyou screens do not show the correct profile for the Additional Participant. See the attached screenshots for an example. The selected Additional Participant profile was "New Individual" - but the screens show the "Name and Address" profile title and fields.

          Currently the sendMail function in events is broken again so I couldn't test the email confirmation - but I suspect this is also not correct. Please test this after fixing sendMail and fixing above.

          David Greenberg added a comment -

          Also note the "Array" output in the State and Country fields in the 2nd profile. I noticed this as well when the 2nd profile was the "correct" one.

          Also getting this warning on the thankyou page:
          warning: Invalid argument supplied for foreach() in /Users/dgg/svn/trunk/CRM/Core/BAO/Block.php on line 213.

          Kurund Jalmi added a comment -
          • fixed issues mentioned in the comment ( rev 22530.)
          David Greenberg added a comment -

          All issues resolved r22587

          Kurund Jalmi added a comment -

          Batch move to verification

          Yashodha Chaku added a comment -

          assigning for 3.0 QA

          Shailesh Lende added a comment -

          Tested and verified for v3.0 rev-23718.

          Yashodha Chaku added a comment -

          assigning for 3.1 verification

          Sunny Sharma added a comment -

          verified for v3.1

            People

            • Assignee:
              Sunny Sharma
              Reporter:
              Piotr Szotkowski

              Dates

              • Created:
                Updated:
                Resolved: