-
Improvement
-
Resolution: Deferred
-
Minor
-
None
-
2.4.8, 2.5.4, 2.6.1
-
None
-
MOODLE_24_STABLE, MOODLE_25_STABLE, MOODLE_26_STABLE
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?
- has been marked as being related by
-
MDL-51578 Improve error message for self enrolment when user tries to enrol before or after the enrolment time frame
-
- Closed
-
- will be (partly) resolved by
-
MDL-47761 Self enrolment simply tells "You can not enrol yourself in this course" instead of using the appropriate error strings
-
- Closed
-