Uploaded image for project: 'Plugins'
  1. Plugins
  2. CONTRIB-105

Gradebook will not show all participants when groups are defined, and course group mode is set to no

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • None
    • 1.8.2
    • Patch: Gradebook Plus
    • None
    • any
    • Any
    • MOODLE_18_STABLE

      Using MOODLE_18_STABLE, from 9/14/07.

      If there are groups defined in a course, and the course-level groups mode is set to 'no', the gradebook will only display users that are in the first group (groupid 1). The course group mode must be set to 'separate' or 'visible' in order to see all participants in the gradebook.

      It looks like in get_formatted_grades(), it ignores the course groupmode setting and calls get_current_group(), which gets the current group from $SESSION->currentgroup[$courseid] . This seems to be getting set to 1 somewhere along the way. If the course group mode is 'no', it should just default to showing all participants.

      Here's a fix -

      diff -r1.3.2.8 lib.php
      396,399c396,400
      < // if the user has selected a group to view by get the group members
      < if ($currentgroup = get_current_group($course->id))

      { < $groupmembers = get_group_users($currentgroup); < }


      >
      > // if the user has selected a group to view by, and the course group mode is not 0, get the group members
      > if ($currentgroup = get_current_group($course->id) && groupmode($course) != 0)

      { > $groupmembers = get_group_users($currentgroup); > }

            aborrow Anthony Borrow
            adamann2 Ann Adamcik (Inactive)
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.