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

Self enrolment by group key does not work - until group settings are saved again

    XMLWordPrintable

Details

    • MOODLE_25_STABLE
    • MOODLE_24_STABLE, MOODLE_25_STABLE, MOODLE_26_STABLE
    • wip-mdl-42904
    • Hide

      Test upgrade from 1.9 => 2.x

      1. Install Moodle 1.9 and create a course and users (don't enrol users)
      2. Add group to course and set enrolment key (don't add any user)
      3. Upgrade to 2.2 and then to master
      4. Check self enrolment method is set for course and "Use group enrolment keys" is set to NO.
      5. Repeat upgrade test for 26, 25 and 24 and make sure it works fine.

      Test upgrade from 2.x to 2.x

      1. Install Moodle 2.2 and and create a course and users (don't enrol users)
      2. Add group to course and set enrolment key (don't add any user)
      3. Add self enrolment method and set "Use group enrolment keys" to yes
      4. Create another course and set "Use group enrolment keys" to No
      5. Upgrade to mater
      6. Check self enrolment method for course and check "Use group enrolment keys" is not modified
      Show
      Test upgrade from 1.9 => 2.x Install Moodle 1.9 and create a course and users (don't enrol users) Add group to course and set enrolment key (don't add any user) Upgrade to 2.2 and then to master Check self enrolment method is set for course and "Use group enrolment keys" is set to NO. Repeat upgrade test for 26, 25 and 24 and make sure it works fine. Test upgrade from 2.x to 2.x Install Moodle 2.2 and and create a course and users (don't enrol users) Add group to course and set enrolment key (don't add any user) Add self enrolment method and set "Use group enrolment keys" to yes Create another course and set "Use group enrolment keys" to No Upgrade to mater Check self enrolment method for course and check "Use group enrolment keys" is not modified
    • 8
    • BACKEND Sprint 7

    Description

      We have a customer running on Moodle 2.5.2. They are setting up courses using group enrolment keys.

      I have checked their configuration and it seems correct.

      If a user attempts to self-enrol on one of these courses, using the correct group key, the receive the error "Incorrect enrolment key, please try again".

      But the key is correct. I have tested this myself.

      The weird thing is that if you go into the groups page, select the relevant group and choose "edit group settings", then press save (without changing anything at all) then the user can self-enrol.

      It is as if the group key details have not been properly saved the first time they were set up...although the key has certainly been saved, as you can click the "unmask" checkbox, and the correct key is displayed. The customer can't go through the whole site, hundreds of courses, editing and clicking save on every group in every course.

      I cannot find anything wrong with the site configuration, the self-enrolment plugin configuration, or the group configuration. It seems to me that this is a bug, although I'd be happy to be proved wrong as long as an explanation of this behaviour is forthcoming.

      I'd appreciate someone taking a look at this as a matter of urgency - I can arrange access to the site and server if required.

      Attachments

        Activity

          People

            rajeshtaneja Rajesh Taneja
            keoghs Sean Keogh
            Petr Skoda Petr Skoda
            Damyon Wiese Damyon Wiese
            Petr Skoda Petr Skoda
            David Woloszyn, Huong Nguyen, Jake Dallimore, Meirza, Michael Hawkins, Raquel Ortega, Safat Shahin, Stevani Andolo
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              13/Jan/14