Project

General

Profile

Bug #7774

[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

Added by Hubert Borderiou almost 6 years ago. Updated almost 6 years ago.

Status:
Bug resolved
Priority:
Normal
Assignee:
Category:
Users/Groups
Target version:
Start date:
13/07/2015
Due date:
% Done:

70%

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

Description

Hi,

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)

best regards

History

#1

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)
and
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)

#2

Updated by Yannick Warnier almost 6 years ago

  • Status changed from New to Assigned
  • Assignee set to Julio Montoya

Assigned to Julio for review

#3

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.

#4

Updated by Yannick Warnier almost 6 years ago

OK for me as it is now. We can add the "add class to session" later.
As a side note, I think we could add the classes button if the course is the only course in the session (which seems to be a very frequent case)

#5

Updated by Yannick Warnier almost 6 years ago

  • Status changed from Needs more info to Bug resolved
  • Assignee changed from Hubert Borderiou to Julio Montoya
  • Target version changed from 1.10.0 to 2.0
  • % Done changed from 0 to 70

Considering it fixed.

Also available in: Atom PDF