[1.9.10.x] When you register a usergroup to a session's course A, it is added in master course A and for all session
I've got a usergroup named STUDENTS
I've got a course MATH
I've got 2 sessions SEMESTER01 and SEMESTER02, the course MATH is used in bith sessions.
I go in course MATH for session SEMESTER01
I go in tool Users > Usergroup > (+) and i add the usergroup STUDENTS in MATH (SEMESTER01)
All students from usergroup STUDENTS have been registerd to the course for the session.
But the usergroup STUDENTS has been added to course MATH for every session (but students not registered)
I go in master course MATH > Users > Usergroup and I see usergroup STUDENTS in this screen => I shouldn see the usergroup for tis course
but students from STUDENTS hasnt been registered in course MATH => bug not so dramatic
I go in course MATH for session SEMESTER02 > Users > Usergroup and I see usergroup STUDENTS in this screen => => I shouldn see the usergroup for tis course
but students from STUDENTS hasnt been registered in course MATH (SEMESTER02)
see screencast [[http://screencast.com/t/tG2lN8WpWo]]
I've checked quickly the code, and I'm afraid i should have to modify the BD table usergroup_rel_course (table usergroup_rel_session not enought to avoid this I think)
Updated by Hubert Borderiou almost 6 years ago
For the moment there are 2 tables in DB
usergroup_rel_course (id | usergroup_id | course_id)
usergroup_rel_session (id | usergroup_id | course_id)
If you go to
Administration > Session list there is no button to register a usergroup to a session
I dont see in code INSERT for the table usergroup_rel_session
May be it had been done to add a button Register usergroup to a session, and register all user in usergroup to all courses of the session.
Anyway, in a course in a session, I can go to User > Classes to add a usergroup to this session course.
We can add users in a specific course of a sesion, one by one, or with usergroups.
But in this case, I've got the bug describe above.
If we want to be able to do this, we'll have to modify the table
usergroup_rel_course and add a field session_id
usergroup_rel_course (id | usergroup_id | course_id | session_id)
Updated by Julio Montoya almost 6 years ago
- Status changed from Assigned to Needs more info
- Assignee changed from Julio Montoya to Hubert Borderiou
To fix the bug, the button "Classes" should not be there if entering in a course-session.
The classes can be added only to a Course (no session) or to a Session.
The other wanted behaviour is more like a new feature. Adding a class to a course-session.