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

    • Testing Instructions:
      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
    • Affected Branches:
      MOODLE_29_STABLE
    • Fixed Branches:
      MOODLE_30_STABLE
    • Pull from Repository:
    • Pull Master Branch:

      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

              Assignee:
              blaky Bence Laky
              Reporter:
              abias Alexander Bias
              Peer reviewer:
              Davo Smith
              Integrator:
              Dan Poltawski
              Tester:
              John Okely
              Participants:
              Component watchers:
              Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Sara Arjona (@sarjona), Víctor Déniz Falcón
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Fix Release Date:
                16/Nov/15