-
Improvement
-
Resolution: Fixed
-
Minor
-
2.8.1, 3.2, 3.7.3, 3.8, 4.1.4
-
MOODLE_28_STABLE, MOODLE_32_STABLE, MOODLE_37_STABLE, MOODLE_38_STABLE, MOODLE_401_STABLE
-
MOODLE_403_STABLE
-
MDL-48762-master -
-
HQ 2023 Sprint i2.1 Moppies
When this issue was created, it was not possible to specify a starting/end date in the course settings.
When these settings were added, they were only used for calendar purposes (for instance, to display the course in the Past/Present/Future course list). However, this is confusing because some users were expecting this date to affect the course visibility (which is a separate setting).
This issue adds a couple of scheduled tasks to change the course visibility automatically when the start/end course date matches the current date.
These tasks will be disabled by default, to keep the current behaviour. Once they are enabled, only courses with start/end dates near the past 24 hours will be checked. The visibility of these courses will only be changed when their start/end dates are higher than the current one, to avoid updating the course visibility early.
The tasks are based on the code of the https://moodle.org/plugins/local_culcourse_visibility plugin maintained by Amanda Doughty, although the following changes have been applied:
- Instead of having one single task, it has been split into 2 different tasks (that way, admins will be able to decide which ones they want to enable/disable).
- A couple of events, course_started and course_ended have been created and are raised when a course visibility is automatically changed.
- Only courses with start/end dates near the past 24 hours will be checked, but they are only changed if the current date is higher than the one defined in the course settings (the original task was changing any course with the current date, ignoring the hour).
- A different help message will be displayed for start/end date settings when these tasks are enabled.
- blocks
-
MDL-78591 Add course setting to let teachers configure whether the scheduled tasks to automatically Show/Hide courses should be considered
- Open
- has a non-specific relationship to
-
MDL-22648 Restrict course availability based on prerequisite course completion
- Open
-
MDL-22078 Course End Date
- Closed
-
MDL-78593 Add default enrolment start/end dates at course level
- Open
- has been marked as being related by
-
MDL-48185 Make everything relative to the course start date and time like for activity availability due date cut-off date dynamically linked to the Section and Course Start Date and time
- Closed
-
MDL-67177 Automatic Opening of Courses
- Closed
- is duplicated by
-
MDL-61216 Course end date should restrict access
- Closed
- will be (partly) resolved by
-
MDL-64754 Setting course visibility to ' restrict' from settings page to prevent students access without hiding it
- Open
-
MDL-59747 Schedule a course to be hidden or visible
- Closed
-
MDL-61209 Ability to set activity due dates relative to course start or end date and enrollment date
- Closed
-
MDL-64817 Restrict Access System Extended to Course Level
- Open