-
Bug
-
Resolution: Fixed
-
Major
-
4.4.4, 4.5
The new random question engine doesn't manage well when a category, linked by a random question, is deleted.
Steps to reproduce the exception:
- create course "test"
- create question category "test category" in the course question bank
- create a question "test question" in "test category" category
- create a quiz "test quiz"
- add a random question from category "test category"
Until now everything works fine. Now:
- delete category "test category" in the question bank
- return to "test quiz" and click on "Questions", you'll see the following exception:
Exception - mod_quiz\structure::get_used_category_description(): Argument #1 ($qcategory) must be of type stdClass, null given, called in [dirroot]/mod/quiz/classes/structure.php on line 1764 |
This bug is blocking because the quiz become unusable and you cannot fix it.
Regards,
Giorgio
- Testing discovered
-
MDL-84487 "Switch bank" button does not function when editing a random question
-
- Open
-