what I did was simply comment out line #1481 in /lib/enrollib.php where it calls:
grade_user_unenrol($courseid, $userid);
This is Moodle 2.7.x by the way..
what I did was simply comment out line #1481 in /lib/enrollib.php where it calls:
grade_user_unenrol($courseid, $userid);
This is Moodle 2.7.x by the way..