Uploaded image for project: 'CiviCRM'
  1. CiviCRM
  2. CRM-7067

When you delete the main registration in an event, it delete all the additionnal registrations

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Major
    • Resolution: Fixed/Completed
    • Affects Version/s: 3.3.alpha
    • Fix Version/s: 3.3.beta
    • Component/s: CiviEvent
    • Labels:
      None

      Description

      We store main participant id in "registered_by_id" and currently it is "on delete cascade" hence additional participants are also deleted. So we should do following:
      1. Change "registered_by_id" to on delete set null.
      2. Modify delete participant screen

      • If there are any additional participants associated with the participant that is been deleted then show below form

      [ x ] Delete this participant record along with associated participant record(s).
      [ ] Delete only participant record and associated contribution record.

      3. If user selects first option, then modify postprocess to delete additional participants
      if user selects second option, append following message after deleting

      "The following participants no longer have an event fee recorded. You can edit their registration and record a replacement contribution by clicking the links below:"
      Adam Bill ( Edit )
      ........

      ----- Original post ----------------------
      Create an event with an online registration allowing multiple registrations.

      Create a registration for John Doe (main participant) and put Jane Doe as a second participant.

      Delete the participant John Doe, it automatically (without any warning) delete the participant Jane.

      expected result: Jane is still in the list of participants.

      X+

        Attachments

          Activity

            People

            • Assignee:
              priya Priya Prajapati
              Reporter:
              xavier xavier dutoit
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: