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

Enrolment not yet started and enrolment already over notification not helpful

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Deferred
    • Affects Version/s: 2.4.8, 2.5.4, 2.6.1
    • Fix Version/s: None
    • Component/s: Enrolments
    • Labels:
      None
    • Affected Branches:
      MOODLE_24_STABLE, MOODLE_25_STABLE, MOODLE_26_STABLE

      Description

      In a course which has an enrolment start date set and/or an enrolment end date, the error notification (incase the enrolment is currently not possible), which the students get incase the enrolment is not helpful and there is only one type of notification.

      In function enrol_page_hook in moodle/enrol/self/lib.php there are already placeholders for giving different notifications:

      if ($instance->enrolstartdate != 0 and $instance->enrolstartdate > time())

      { //TODO: inform that we can not enrol yet return null; }

      if ($instance->enrolenddate != 0 and $instance->enrolenddate < time())

      { //TODO: inform that enrolment is not possible any more return null; }

      Is there a timeframe when to expect different notifications?

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                sebabo Sebastian B
                Participants:
                Component watchers:
                Amaia Anabitarte, Bas Brands, Carlos Escobedo, Sara Arjona (@sarjona), Víctor Déniz Falcón
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: