-
Bug
-
Resolution: Fixed
-
Major
-
4.3
-
3
-
Team Alpha - Sprint 2 I4-2023
Since my last upgrade from 4.2 to 4.3, all my quizzes using random questions from empty categories (but which contain non-empty sub-categories) don't work anymore.
I get the following type of message:
"There are not enough questions in category 19 to create the question Random question (6107)."
I've tried creating new instances of the same quizzes with random questions from the same empty category and its non-empty subcategories, I find the selecting form a bit unpractical, but it works, and I noticed that the difference is in the mdl_question_set_references, more precisely the last field "filterconditions"
When it's from an old quiz, it contains things like:
{"questioncategoryid":"19","includingsubcategories":"1"}and it doesn't work (see above error message)
When it's a new one, with questions randomly selected from the same category, it says:
{"filter":{"category":{"name":"category","jointype":1,"values":["19"],"filteroptions":
{"includesubcategories":true}}},"cmid":4582,"courseid":68,"jointype":2,"qpage":0,"qperpage":1000,"sortdata":[],"cat":"19,25","tabname":"questions"}
And this time it works...
I hope this information helps fix the problem, as I will have to recreate manually a lot of quizzes!
- has been marked as being related by
-
MDL-81317 Moodle 4.1 upgrade results in broken random questions
-
- Development in progress
-
-
MDL-82769 Legacy random question filter conditions break random question on upgrade
-
- Closed
-
- is a regression caused by
-
MDL-72321 Better searching/filtering in the question bank, so more flexible randomisation in quizzes
-
- Closed
-
- is duplicated by
-
MDL-79738 Quizzes with Random Questions have Errors
-
- Closed
-
-
MDL-79982 QUIZ-There are not enough questions in category
-
- Closed
-
-
MDL-80387 CUESTIONARIOS CON PREGUNTAS ALEATORIOS
-
- Closed
-
-
MDL-80539 Quiz Moodle 4.3 - random question subcategories not included
-
- Closed
-