-
Bug
-
Resolution: Unresolved
-
Minor
-
None
-
4.5
When exporting a cloze question inside a category from the question bank a warning is issued (using PHP 8.2):
Undefined property: stdClass::$categoryobjectStack frames (7)
6 Whoops\Exception\ErrorException
…/question/type/multianswer/questiontype.php:149
5 default_error_handler
…/question/type/multianswer/questiontype.php:149
4 qtype_multianswer get_question_options
…/question/editlib.php:109
3 get_questions_category
…/question/format.php:937
2 qformat_default exportprocess
…/lib/questionlib.php:1815
1 question_pluginfile
…/lib/filelib.php:5140
0 file_pluginfile…/pluginfile.php:44
This is probably because subquestion parts have a parent id and therefore do not exist independent from the parent. Only the parent needs the category.