If a course has the site defaults overridden, you cannot undo it. I added custom grades into a course and it added with no errors. Now, if I uncheck "Override site defaults" I get "Exception - Call to undefined method mysqli_native_moodle_database::delete_record()" and then I am logged out of the site when I try and go back into the course.
I cannot remove custom grades in any course (I am the site administrator) and get logged out after any attempt.
I believe this issue is also the root of why I cannot delete any course that has custom grades. I have no issue with this on my 3.1 site (pre 3.5 upgrade) but after upgrading to 3.5 it became an issue.
I think there is a bug that needs to be reported but I am unable to log in to report it and the password reset emails have not come through.
Exception - Call to undefined method mysqli_native_moodle_database::delete_record()
More information about this error
×Debug info:
Error code: generalexceptionmessage
×Stack trace:
line 144 of /grade/edit/letter/index.php: Error thrown
When I try and delete a course I get the following.
Exception - Call to undefined method mysqli_native_moodle_database::delete_record()
More information about this error
×Debug info:
Error code: generalexceptionmessage
×Stack trace:
line 1404 of /lib/gradelib.php: Error thrown
line 4924 of /lib/moodlelib.php: call to remove_grade_letters()
line 4840 of /lib/moodlelib.php: call to remove_course_contents()
line 67 of /course/delete.php: call to delete_course()