System: Moodle 1.9 upgraded to 2.2.11 and then to 2.8.3.
I am fairly new to Moodle and inherited this system. I just upgraded it to 2.8.3 and now testing the custom features. The client does not use the system conventionally. It has been coded with a custom page/function to copy a Course and it's enrolments through SQL.
The duplication of the records does work; however, the role for the student and teacher does not come through. I triple checked the mdl_course, mdl_enrol, and mdl_user_enrolment records tables and can see no variance in the records that is not appropriate.
I am not sure what sets the participants' role, if not in the mdl_user_enrolment table. Any help is appreciated. Thank you.