Permalink
Browse files

Merge branch 'w41_MDL-35839_m23_enroldeletecleanup' of git://github.c…

…om/skodak/moodle into MOODLE_23_STABLE
  • Loading branch information...
2 parents 86b1d0e + 6f0f18a commit 1778232f456856647679f6594b240a4c05042238 @nebgor nebgor committed Oct 10, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/enrollib.php
View
2 lib/enrollib.php
@@ -1626,7 +1626,7 @@ public function delete_instance($instance) {
$participants->close();
// now clean up all remainders that were not removed correctly
- $DB->delete_records('role_assignments', array('itemid'=>$instance->id, 'component'=>$name));
+ $DB->delete_records('role_assignments', array('itemid'=>$instance->id, 'component'=>'enrol_'.$name));
$DB->delete_records('user_enrolments', array('enrolid'=>$instance->id));
// finally drop the enrol row

0 comments on commit 1778232

Please sign in to comment.