-
Bug
-
Resolution: Fixed
-
Blocker
-
3.1
-
MOODLE_31_STABLE
-
MOODLE_31_STABLE
-
MDL-53272_master -
Right now, if you delete an activity that has been index, delete it, then enter a search that would return it, you will get a fatal DB error:
Debug info: SELECT * FROM {context} WHERE id = ?
|
[array (
|
0 => 47,
|
)]
|
Error code: invalidrecord
|
|
Stack trace:
|
line 1461 of /lib/dml/moodle_database.php: dml_missing_record_exception thrown
|
line 1437 of /lib/dml/moodle_database.php: call to moodle_database->get_record_select()
|
line 5449 of /lib/accesslib.php: call to moodle_database->get_record()
|
line 1401 of /lib/weblib.php: call to context::instance_by_id()
|
line 447 of /search/classes/document.php: call to format_string()
|
line 84 of /search/classes/output/renderer.php: call to core_search\document->export_for_template()
|
line 67 of /search/classes/output/renderer.php: call to core_search\output\renderer->render_result()
|
line 106 of /search/index.php: call to core_search\output\renderer->render_results()
|