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

Unclear message when the maximum number of users is reached in one of the enrolment instances.

    XMLWordPrintable

    Details

    • Testing Instructions:
      Hide

      Test 1

      1. Enable enrol_self plugin at system level
      2. Create a system cohort
      3. Create another system cohort where user XXXX (no admin user) is part of it
      4. Create a course with no guest access
      5. Add a few enrol_self instances:
        • One without enrolment key
        • One with enrolment key
        • One requiring being part of a cohort where the user is not part of that cohort
        • One requiring being part of a cohort where the user is part of that cohort
        • One with an end date where the end date is passed
      6. Add other enrolment types instances (probably you need to enable them at system level before)
      7. Log in as a user that has no access to the course
      8. Click on the course and you will be redirected to enrol/index.php
      9. You SHOULD see the enrolment instances where the user can be enrolled (without enrolment key, with enrolment key and cohort with the user) with a 'Enrol' button + whatever is needed for that case (if there is something, for example the key)
      10. You SHOULD see the enrolment instances where the user can not be enrolled (cohort the user is not part of for example) with a message and without any 'Enrol' button.
      11. If you enabled other enrolment types to be used they should all be respected.

      Test 2 (stolen from MDL-49232 testing instructions)

      1. Create a course.
      2. Enable the site setting autologin guests
      3. Set up a course with self-enrolment
      4. Log out.
      5. Try and access the course as a guest
      6. Confirm that you get the message that guests cannot enrol in the course with a continue button that redirects you to a login page (you SHOULD NOT see any error message here)

      Test 3 (stolen from MDL-47761 testing instructions)

      1. Create a course.
      2. Disable guest access and enable self enrolment.
      3. Configure self enrolment with 'max enrolled users' set to '1'.
      4. Login as one student.
      5. Check that you can enrol into the course successfully.
      6. Login as another student.
      7. Try to enrol into the course.
      8. You should be shown the error message "Maximum number of users allowed to access was already reached".
      Show
      Test 1 Enable enrol_self plugin at system level Create a system cohort Create another system cohort where user XXXX (no admin user) is part of it Create a course with no guest access Add a few enrol_self instances: One without enrolment key One with enrolment key One requiring being part of a cohort where the user is not part of that cohort One requiring being part of a cohort where the user is part of that cohort One with an end date where the end date is passed Add other enrolment types instances (probably you need to enable them at system level before) Log in as a user that has no access to the course Click on the course and you will be redirected to enrol/index.php You SHOULD see the enrolment instances where the user can be enrolled (without enrolment key, with enrolment key and cohort with the user) with a 'Enrol' button + whatever is needed for that case (if there is something, for example the key) You SHOULD see the enrolment instances where the user can not be enrolled (cohort the user is not part of for example) with a message and without any 'Enrol' button. If you enabled other enrolment types to be used they should all be respected. Test 2 (stolen from MDL-49232 testing instructions) Create a course. Enable the site setting autologin guests Set up a course with self-enrolment Log out. Try and access the course as a guest Confirm that you get the message that guests cannot enrol in the course with a continue button that redirects you to a login page (you SHOULD NOT see any error message here) Test 3 (stolen from MDL-47761 testing instructions) Create a course. Disable guest access and enable self enrolment. Configure self enrolment with 'max enrolled users' set to '1'. Login as one student. Check that you can enrol into the course successfully. Login as another student. Try to enrol into the course. You should be shown the error message "Maximum number of users allowed to access was already reached".
    • Affected Branches:
      MOODLE_28_STABLE, MOODLE_29_STABLE
    • Fixed Branches:
      MOODLE_28_STABLE, MOODLE_29_STABLE
    • Pull from Repository:
    • Pull Master Branch:
      MDL-50332_master
    • Sprint:
      Team Both Sprint 1

      Description

      I created two Self enrolment instances (Custom instance name "Gruppo 1" and "Gruppo 2") in a course, each one with "Max enrolled users" set to 10.

      When the limit of the maximum number of users is reached in one of the instances (for example, in "Gruppo 1"), the enrolment options of the course show the message "Maximum number of users allowed to self-enrol was already reached." , although the other enrolment instance is still available.

      This message could be misunderstood by users because it doesn't specify the name of the enrolment instance that is no more available.

      In Moodle 2.6, the instance that reaches the maximum number of users simply disappears from the list of the enrolment options without any warning message.

        Attachments

        1. 20150921-arn-poc-1.png
          20150921-arn-poc-1.png
          56 kB
        2. 20150921-arn-poc-2.png
          20150921-arn-poc-2.png
          65 kB
        3. 20150921-current.png
          20150921-current.png
          60 kB
        4. max_enrol28.png
          max_enrol28.png
          14 kB

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  9/Nov/15