Multiple subscription to courses broken
Since the structure changes in user and course fields, the multiple assignment of one student to several courses (/main/admin/subscribe_user2course.php) is broken. It only subscribes the student to the first course selected (if selecting 4 courses and one student). I suspect this also happens with all other lists that relate to either users or courses. Please check.
Actually it does not seem to be able to subscribe a user to more than one course this way... If you subscribe him one time to four courses, it only subscribes the user to one course and then prevents me to subscribe him to other courses, even if selected one by one.
Updated by Yannick Warnier almost 5 years ago
- Status changed from Assigned to Bug resolved
- % Done changed from 0 to 100
I found the issue, which was not related to multiple subscription but to subscription overall. The CourseManager::add_user_to_course() function was checking for the "course.subscribe" field, which was not necessary if the person subscribing the user is a course admin.