djplaner / moodle-mod_bim

A Moodle activity module the provides support for managing/marking individual student blogs hosted on external services.
http://davidtjones.wordpress.com/research/bam-blog-aggregation-management/
7 stars 2 forks source link

Deleting a course doesn't remove 'sub-table" data #55

Closed djplaner closed 11 years ago

djplaner commented 11 years ago

When a course with a BIM activity is deleted only the data in the bim table is being deleted: questions, group_allocation, marking and feeds is left intact.

djplaner commented 11 years ago

The mod/bim/lib.php file has a method forum_delete_instance that is meant to do this. The error is a little obvious

if ( ! $DB->delete_records( 'bim_group_allocation', array('id'=>$bim->id))) {
   $result = false;
}

Changed and fixed.