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

Improve error message for self enrolment when user tries to enrol before or after the enrolment time frame

    XMLWordPrintable

Details

    • MOODLE_29_STABLE
    • MOODLE_30_STABLE
    • Hide
      • Create course with self enrolment enabled + a future start date
      • As a non-enrolled user, attempt to access the course
      • * Ensure the message 'You cannot enrol yet, enrolment starts on [correct date]' appears
      • Change the self enrolment instance so that the end date (and start date) is in the past
      • As a non-enrolled user, attempt to access the course
      • * Ensure the message 'You cannot enrol anymore, enrolment has ended on [correct date]'
      • Change the self enrolment instance so that the start date is in the past and the end date is in the future
      • * Ensure the non-enrolled user is now able to enrol on the course
      Show
      Create course with self enrolment enabled + a future start date As a non-enrolled user, attempt to access the course * Ensure the message 'You cannot enrol yet, enrolment starts on [correct date] ' appears Change the self enrolment instance so that the end date (and start date) is in the past As a non-enrolled user, attempt to access the course * Ensure the message 'You cannot enrol anymore, enrolment has ended on [correct date] ' Change the self enrolment instance so that the start date is in the past and the end date is in the future * Ensure the non-enrolled user is now able to enrol on the course

    Description

      Steps to reproduce:

      • Login as a teacher
      • Create a course
      • Configure self enrolment in the course with a time frame starting in the future (respectively ending in the past)
      • Login as a student
      • Try to enrol into the course

      Actual result:

      • The user is not able to enrol as expected, but sees a rather ambiguous error message saying "Enrolment is disabled or inactive"

      Expected result:

      • The user is not able to enrol and is informed about the real reason with a error message saying "You cannot enrol yet, enrolment starts on [date]" respectively "You cannot enrol yet, enrolment has ended on [date]".

      Attachments

        Issue Links

          Activity

            People

              blaky Bence Laky
              abias Alexander Bias
              Davo Smith Davo Smith
              Dan Poltawski Dan Poltawski
              John Okely John Okely
              David Woloszyn, Huong Nguyen, Jake Dallimore, Meirza, Michael Hawkins, Raquel Ortega, Safat Shahin, Stevani Andolo
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                16/Nov/15