students who have finished course (timeend) are automatically un-enrolled

Re: students who have finished course (timeend) are automatically un-enrolled

by Bruno Vernier -
Number of replies: 0
For those of us with this auditor problem, immediately edit  line 284 of enrol/enrol.class.php by adding:

return ; 

//this should prevent the cron job from automatically un-enrolling

(if you don't want to un-enroll anyone due to timing out)

if you have already lost a bunch of student enrolments since upgrading to 1.4, you will need to recover them from a backup of your moodle 1.3 data

there remains the problem of distinguishing between active students and timed-out students.  The criteria is simple:  if timeend is non-zero and less than current time

do we want to flag students who have timed-out (i.e. completed, ran out of time, or gave up part-way)  in Participants lists, all places where student lists show up or where names come up in social activities?

I think this could be done with a function like is_timed_out(userid, courseid)  and some extra css