Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-42536

Self enrolment with group enrolment key fails with error

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.6
    • Fix Version/s: 2.6
    • Component/s: Enrolments
    • Labels:
    • Testing Instructions:
      Hide

      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 group enrolment key
      4. Make sure no error is shown and user1 can see access course.
      5. Log in as teacher and make sure user1 is added to proper group.
      6. Run behat enrol_self

      Show
      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 group enrolment key 4. Make sure no error is shown and user1 can see access course. 5. Log in as teacher and make sure user1 is added to proper group. 6. Run behat enrol_self
    • Affected Branches:
      MOODLE_26_STABLE
    • Fixed Branches:
      MOODLE_26_STABLE
    • Pull Master Branch:
      wip-mdl-42536

      Description

      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 user2 (not yet enrolled in the course) and enrol in the course by supplying the group enrolment key and it fails with Call to undefined function groups_add_member() in /home/rajesht/moodles/im/moodle/enrol/self/lib.php on line 208

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  18/Nov/13