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

Field participant_role is not set to default participant_role_id

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Trivial
    • Resolution: Fixed/Completed
    • Affects Version/s: 3.4.5
    • Fix Version/s: 4.1.0
    • Component/s: None
    • Labels:
      None

      Description

      In earlier versions of CiviCRM it was possible to have the CiviCRM included using a Custom Profile for events and it would be set automatically to the participant_role_id by default.

      This is gone in 3.4.5 and does not work on the demo system either. To reproduce add Participant Role to a Profile and add the profile to the event. The role should be selected by default if you give a default participant_role in the event settings (which you are forced to do currently).

      A fix for this bug is to add the following

      + $this->_defaults['participant_role'] = $this->_defaults['participant_role_id'];

      in the setDefaultValues function.

        Attachments

          Activity

            People

            • Assignee:
              lobo Donald A. Lobo
              Reporter:
              sussdorff Malte Sussdorff
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: