enrolment from ext. db: problem in enrol.php?

enrolment from ext. db: problem in enrol.php?

by James M -
Number of replies: 1

With 1.4, I've been having problems getting automatic enrollments from an external database to work. I had a look at enrol/database/enrol.php and think I've found a couple of problems in the get_student_courses routine. (See attached doc. with my comments after JM).

Basically, if I changed 3 things, it worked.
1. loop through all courses to check against ext. db 
2. changed way a parameter was passed to db query
3. added call to the enrol_student

Has anybody else got enrolment from an external database working? If so, then I'll be a bit confused.

Average of ratings: -
In reply to James M

Re: enrolment from ext. db: problem in enrol.php?

by Crafton Williams -
Hi James:

I think saw the same problems you did.

I made a few changes and got it to work. Have a look at the file I've attached and let me know if it works under your configs.

You can make furture postings regarding enrolments in the enrolments forum.

Crafton