-
Improvement
-
Resolution: Unresolved
-
Minor
-
None
-
3.11.10, 4.0.4
-
None
-
MOODLE_311_STABLE, MOODLE_400_STABLE
Improvement needed to verify form submission when adding repeated slots and setting time range from and to is less than the "default slot duration" setting of the activity.
Suggestions for form validation and stop submission when the time range from and to is less than the default slot duration.
Replication:
- Create a course.
- Enrol two students.
- Turn editing on.
- Add a scheduler activity. Note that the default slot duration is set to 15 (minutes).
- Visit the scheduler activity and click "Add slots", then "Add repeated slots".
- While in the "Add repeated slots" page, tick "Enable" the setting Repeat time slots until, and set the date in the future (say one day or two days from today)
- In the time range setting, set From: 00:00 and To: 00:10 (note it is just 10 minutes, compare it to the default slot duration of 15 minutes).
- Click "Save changes" button.
RESULT: The page will refresh and the My appointments Slots page is displayed with the following message:
0 slots have been added.