-
Bug
-
Resolution: Fixed
-
Major
-
4.5
-
MOODLE_405_STABLE
-
MOODLE_405_STABLE
-
This is Problem H from MDL-81614:
[Mon Sep 09 10:03:53.948243 2024] [php:notice] [pid 96] [client 172.18.0.5:49742] Potential coding error - active database transaction detected during request shutdown:
|
* line 261 of /lib/dml/moodle_read_slave_trait.php: call to moodle_database->start_delegated_transaction()
|
* line 130 of /question/bank/managecategories/classes/external/move_category.php: call to pgsql_native_moodle_database->start_delegated_transaction()
|
* line ? of unknownfile: call to qbank_managecategories\\external\\move_category::execute()
|
* line 253 of /lib/external/classes/external_api.php: call to call_user_func_array()
|
* line 83 of /lib/ajax/service.php: call to core_external\\external_api::call_external_function()
|
, referer: http://webserver/question/bank/managecategories/category.php?courseid=101000
|
See this code block from MDL-72397 (4.5) - when the exception is thrown we should rollback the database transaction in order to avoid the error triggered when running the Teacher cannot create a duplicate idnumber within a context by moving a category Behat scenario