-
Bug
-
Resolution: Fixed
-
Minor
-
4.4, 4.5
To reproduce
- Create a 4.1 site
- Create a course with a quiz
- Add a random question to the quiz (I made a new category when I added the question, and there were no questions in the category)
- Upgrade to latest master
- Browse to the quiz
- Press the cog next to the random question created in step 3.
- An exception is thrown:
Exception - qbank_managecategories\category_condition::validate_category_param(): Argument #1 ($categoryandcontext) must be of type string, null given, called in [dirroot]/mod/quiz/classes/question/bank/custom_view.php on line 73
|
The problem appears to be here where the filtercondition is obtained directly from the DB, rather than being converted on the fly to the new format by convert_legacy_set_reference_filter_condition. Then code a bit further down assumes the filter condition is in the new format.
- duplicates
-
MDL-80466 Random questions restored from 3.9 backup shows error in the edit quiz screen
-
- Open
-