From 2645ca05d835fff7e858db75a48a93a4e53b348d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20S=CC=8Ckoda?= Date: Sat, 6 Oct 2012 19:26:37 +0200 Subject: [PATCH] MDL-35839 fix invalid enrol instance delete cleanup --- lib/enrollib.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/enrollib.php b/lib/enrollib.php index 0260e5205f9..8d726ae7c41 100644 --- a/lib/enrollib.php +++ b/lib/enrollib.php @@ -1626,7 +1626,7 @@ abstract class enrol_plugin { $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