-
Bug
-
Resolution: Fixed
-
Minor
-
4.0.6, 4.1
-
MOODLE_400_STABLE, MOODLE_401_STABLE
-
MOODLE_400_STABLE, MOODLE_401_STABLE
-
MDL-77148_401 -
In the question bank, filter the questions by tags and then try deleting one or more questions. Observe that errors are thrown.
Steps to reproduce:
1. Navigate to Question bank with some questions with question tags or could create one.
2. In the Question bank, filter using tags.
3. Questions matching those tags should be displayed.
4. Now, try deleting one or more questions
Actual result: Deletion should be successful and no error should be thrown
Expected result: The below errors are thrown.
Exception - htmlspecialchars(): Argument #1 ($string) must be of type string, array given
Debug info:
Error code: generalexceptionmessage
Stack trace:
line 104 of /lib/weblib.php: TypeError thrown
line 104 of /lib/weblib.php: call to htmlspecialchars()
line ? of unknownfile: call to s()
line 112 of /tmp/moodle-cache/2/mustache/1675681331/boost/__Mustache_a3d87a9e8dbdfebc2971be0d53490c77.php: call to call_user_func()
line 29 of /tmp/moodle-cache/2/mustache/1675681331/boost/__Mustache_a3d87a9e8dbdfebc2971be0d53490c77.php: call to __Mustache_a3d87a9e8dbdfebc2971be0d53490c77->sectionD439dff29f5e8cacbed4e41d7326c83c()
line 67 of /lib/mustache/src/Mustache/Template.php: call to __Mustache_a3d87a9e8dbdfebc2971be0d53490c77->renderInternal()
line 204 of /lib/outputrenderers.php: call to Mustache_Template->render()
line 2143 of /lib/outputrenderers.php: call to renderer_base->render_from_template()
line 241 of /lib/outputrenderers.php: call to core_renderer->render_single_button()
line 2098 of /lib/outputrenderers.php: call to renderer_base->render()
line 134 of /question/bank/deletequestion/delete.php: call to core_renderer->confirm()