Hello all,
The attached code needs to be added to lib/moodlelib.php to cleanup course gradebook settings when a course is deleted. If it is not added it could potentially cause a problem if a course id happens to be re-used by the db at a later date. This is not likely, but is regardless a possibility.
Regards
Gradebook
gradebook_cdc cleanup of deleted courses
This discussion has been locked so you can no longer reply to it.