Description: Using activity restrictions to have the user complete the first video before being able to start the second.
Issue: For fluid use of the course all the videos are set as labels so the learners do not need to click into the video. When you setup completion criteria along with activity restrictions to only allow access to play next activity if the previous video is watched an error occurs on course access.
Steps to Reproduce:
Add video to course and set the view to label.
Under completion criteria set it to watch 100% of the video.
Add second video to course and set the view to label.
On the second video setup activity restriction to must be complete and the activity is video one.
Have a student user try and access the course.
Expected: User would need to watch the first video before the second video could be played.
Actual: Student gets error and can watch the second video without needing to watch the first.
Activity is hidden
Error code: requireloginerror
line 3076 of /lib/moodlelib.php: require_login_exception thrown
line 515 of /lib/externallib.php: call to require_login()
line 514 of /mod/videotime/plugin/pro/classes/external.php: call to external_api::validate_context()
line 261 of /lib/externallib.php: call to videotimeplugin_pro\external::get_watch_percent()
line 81 of /lib/ajax/service.php: call to external_api::call_external_function()
Description: Using activity restrictions to have the user complete the first video before being able to start the second.
Issue: For fluid use of the course all the videos are set as labels so the learners do not need to click into the video. When you setup completion criteria along with activity restrictions to only allow access to play next activity if the previous video is watched an error occurs on course access.
Steps to Reproduce:
Expected: User would need to watch the first video before the second video could be played.
Actual: Student gets error and can watch the second video without needing to watch the first.
Activity is hidden Error code: requireloginerror