-
Bug
-
Resolution: Won't Do
-
Minor
-
None
-
2.7
-
MOODLE_27_STABLE
The following error message was obtained when attempting to upgrade all assignments, also when only one assignment was selected. Assignments were in old hidden courses.
Can not find data record in database table course_modules.
More information about this error
Debug info: SELECT * FROMUnknown macro: {course_modules}WHERE module = ? AND instance = ?
[array (
0 => '8',
1 => '322',
)]
Error code: invalidrecord
Stack trace:line 1451 of /lib/dml/moodle_database.php: dml_missing_record_exception thrown
line 1427 of /lib/dml/moodle_database.php: call to moodle_database->get_record_select()
line 72 of /mod/assign/upgradelib.php: call to moodle_database->get_record()
line 209 of /admin/tool/assignmentupgrade/locallib.php: call to assign_upgrade_manager->upgrade_assignment()
line 64 of /admin/tool/assignmentupgrade/batchupgrade.php: call to tool_assignmentupgrade_upgrade_assignment()