Permalink
Browse files

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

…om/skodak/moodle into MOODLE_22_STABLE
  • Loading branch information...
2 parents 9ed6d76 + 2645ca0 commit cc6b32b227a7a8b255b88a0a17984bbce4e2af0f @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 cc6b32b

Please sign in to comment.