Project

General

Profile

Bug #7677

Multiple subscription to courses broken

Added by Yannick Warnier over 4 years ago. Updated over 4 years ago.

Status:
Bug resolved
Priority:
Normal
Category:
Administration
Target version:
Start date:
04/05/2015
Due date:
% Done:

100%

Estimated time:
Complexity:
Normal
SCRUM pts - complexity:
?

Description

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.

History

#1

Updated by Yannick Warnier over 4 years ago

  • Assignee changed from Julio Montoya to Yannick Warnier

Apparently I'm wrong: it's not the multiple subscription that's wrong... it's the subscription in general to more than one course.

#2

Updated by Yannick Warnier over 4 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.

Fixed in https://github.com/chamilo/chamilo-lms/commit/47dd428a9822bc3b464c704169f96e1fbc5a518a

Also available in: Atom PDF