-
Bug
-
Resolution: Duplicate
-
Minor
-
None
-
4.0.6
-
None
-
MOODLE_400_STABLE
DESCRIPTION
When trying to click on the shuffle checkbox on Quiz Activities without questions yet, a coding error appears.
STEPS TO REPLICATE
1- Login ** on any Moodle 4.0 version.
2- Go to any Quiz activity on any course.
3- click on "add question" button.
4- Click on "Shuffle" checkbox button.
5- The coding error appears.
OBSERVED BEHAVIOR:
The coding error window appears, preventing editing questions until user close the error window or refresh the question page.
EXPECTED BEHAVIOR:
The Shuffle checkbox button does not have to deploy a coding message error, even if there are not questions added yet.
REPLICATION LOCATIONS
https://virtual.ucompensar.edu.co/
https://dvelasquez-sandbox.mrooms.net
https://sandbox-internal.myopenlms.net/moodle4/
https://cdelgado-sandbox.mrooms.net/
https://core2next-sandbox.mrooms.net/
ADDITIONAL INVESTIGATION NOTES
This is the coding error
- line 83 of /mod/quiz/classes/event/section_shuffle_updated.php: coding_exception thrown
- line 272 of /lib/classes/event/base.php: call to mod_quiz\event\section_shuffle_updated->validate_data()
- line 1216 of /mod/quiz/classes/structure.php: call to core\event\base::create()
- line 98 of /mod/quiz/edit_rest.php: call to mod_quiz\structure->set_section_shuffle()
CLIENT IMPACT
Not really impact but it is an annoying error that could get the user (usually a teacher user role) looking around to close the error window.
ATTACHMENTS
- duplicates
-
MDL-76766 firstslotid Error occurs when attempting to shuffle empty question set
-
- Closed
-