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

Set Default Participant Role when loading back-office "Register Event Participant" form

    Details

    • Type: Improvement
    • Status: Done/Fixed
    • Priority: Minor
    • Resolution: Fixed/Completed
    • Affects Version/s: 3.1.5, 3.2
    • Fix Version/s: 3.3.alpha
    • Component/s: CiviEvent
    • Labels:
      None

      Description

      Modify setDefaults() for CRM/Event/Form/Participant.php to set Participant Role to the value of civicrm_event.default_role_id if this is not NULL.

      NOTES from Lobo on related issue (CRM-6111):
      Setting role_id needs to trigger some javascript to pull in potentially custom fields set, and hence is a bit more complicated than just setting the default

      Note that we are using eid=EVENT_ID_NUMBER for legacy reasons (and we are using eventId in an incredibly bad manner in an ajax call on that page for fees).

      This whole form needs a cleanup and optimization.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                rajan Rajan P Mayekar
                Reporter:
                dgg David Greenberg
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: