Project

General

Profile

Bug #7232

Issue in assignments count

Added by Yannick Warnier almost 5 years ago. Updated almost 5 years ago.

Status:
Bug resolved
Priority:
Normal
Category:
Assignments / Work
Target version:
Start date:
20/08/2014
Due date:
% Done:

100%

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

Description

In Chamilo 1.9.8.2, in assignments, with more than 0 students and one assignment (and no student having sent no document), the main table says, in the "Handed out" column ("Cantidad enviada" in Spanish), "0/Array".

The issue comes from the CourseManager::get_user_list_from_course_code() method, whereby, if the session is not empty, the $return_count parameter seems not to be taken into account in the same way as it is taken when session id is empty.

Associated revisions

Revision 804cc1b8 (diff)
Added by Yannick Warnier almost 5 years ago

Fix issue with users counting in task when session is defined, whereas the $return_count param was not taken into account if session_id != 0 - refs #7232

Revision 0798f1d0 (diff)
Added by Yannick Warnier almost 5 years ago

Fix issue with users counting in task, whereby the call to CourseManager::get_user_list_from_source_code() is made with a $status of STUDENT (=5), which is not equivalent to the status in the session_rel_course_rel_user table (as is the case here), thus not counting the students. This reverts commit e2784876 - refs #7232

Also available in: Atom PDF