Browse files

gradebook MDL-21907 grader report group view was being limited to gro…

…ups in the course's default grouping
  • Loading branch information...
1 parent 628344c commit bdc05176e9c8054fc081db56f29720f5c45dfd63 Andrew Davis committed Nov 12, 2010
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/grouplib.php
View
4 lib/grouplib.php
@@ -346,7 +346,7 @@ function groups_print_course_menu($course, $urlroot, $return=false) {
$context = get_context_instance(CONTEXT_COURSE, $course->id);
if ($groupmode == VISIBLEGROUPS or has_capability('moodle/site:accessallgroups', $context)) {
- $allowedgroups = groups_get_all_groups($course->id, 0, $course->defaultgroupingid);
+ $allowedgroups = groups_get_all_groups($course->id, 0);
// detect changes related to groups and fix active group
if (!empty($SESSION->activegroup[$course->id][VISIBLEGROUPS][0])) {
if (!array_key_exists($SESSION->activegroup[$course->id][VISIBLEGROUPS][0], $allowedgroups)) {
@@ -362,7 +362,7 @@ function groups_print_course_menu($course, $urlroot, $return=false) {
}
} else {
- $allowedgroups = groups_get_all_groups($course->id, $USER->id, $course->defaultgroupingid);
+ $allowedgroups = groups_get_all_groups($course->id, $USER->id);
// detect changes related to groups and fix active group
if (isset($SESSION->activegroup[$course->id][SEPARATEGROUPS][0])) {
if ($SESSION->activegroup[$course->id][SEPARATEGROUPS][0] == 0) {

0 comments on commit bdc0517

Please sign in to comment.