Moodle
  1. Moodle
  2. MDL-25392

Group enrolment key cannot be used to automatically add users to group

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.0
    • Fix Version/s: 2.0
    • Component/s: Groups
    • Labels:
      None
    • Environment:
      MAMP, Moodle 2RC2 build 20101124
    • Affected Branches:
      MOODLE_20_STABLE
    • Fixed Branches:
      MOODLE_20_STABLE
    • Rank:
      31934

      Description

      This issue relates to MDLQA-144. A student cannot use a valid group enrolment key to enrol in a course or be sorted into a pre-configured group.

      Test

      This test requires a course in which self-enrolment is allowed and for which an enrolment key has been set.
      1. Login as a teacher, access a course and follow the groups link in the course administration settings.
      2. Create a group and set a group enrolment key.
      3. Login as user1 (not yet enrolled in the course) and enrol in the course by supplying the course enrolment key.
      4. Login as user2 (not yet enrolled in the course) and enrol in the course by supplying the group enrolment key.
      5. Login as the teacher again, access the participants page and check that user2 is a member of the group whereas user1 is not.

      Result

      Steps 1-3, 5a: pass
      Step 4: fail - cannot login with valid group enrolment key
      Step 5: user 1 enrols as an ungrouped student, user2 cannot enrol and is not grouped.

        Activity

        Hide
        Petr Škoda added a comment -

        hello,
        did you enable "Use group enrolment keys" in the self enrolment plugin instance configuration?

        Show
        Petr Škoda added a comment - hello, did you enable "Use group enrolment keys" in the self enrolment plugin instance configuration?
        Hide
        Chad Outten added a comment -

        not a bug. test passes ok with 'Use group enrolment keys' enabled in the self enrolment plugin instance config. apologies for the oversight.

        Show
        Chad Outten added a comment - not a bug. test passes ok with 'Use group enrolment keys' enabled in the self enrolment plugin instance config. apologies for the oversight.

          People

          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: