MDL-11831, gradebook will not show all participants when groups are defined but groupmode not set

This commit is contained in:
toyomoyo
2007-10-19 06:50:57 +00:00
parent 29a8cc034b
commit 0d2521b4d3
+2 -2
View File
@@ -312,7 +312,7 @@ function grade_get_formatted_grades() {
// if the user has selected a group to view by get the group members
if ($currentgroup = get_current_group($course->id)) {
if (($currentgroup = get_current_group($course->id)) && groupmode($course) != 0) {
$groupmembers = get_group_users($currentgroup);
}
@@ -1205,7 +1205,7 @@ function grade_download($download, $id) {
/// Check to see if groups are being used in this course
$currentgroup = get_current_group($course->id);
if ($currentgroup) {
if (($currentgroup = get_current_group($course->id)) && groupmode($course) != 0) {
$students = get_group_students($currentgroup, "u.lastname ASC");
} else {
$students = grade_get_course_students($course->id);