Moodle
  1. Moodle
  2. MDL-21907

A course's default grouping determines the groups to filter by in the grade book.

    Details

    • Type: Bug Bug
    • Status: Reopened
    • Priority: Minor Minor
    • Resolution: Unresolved
    • Affects Version/s: 1.9.7, 1.9.8, 1.9.9, 2.0
    • Fix Version/s: STABLE backlog
    • Component/s: Gradebook
    • Labels:
      None
    • Affected Branches:
      MOODLE_19_STABLE, MOODLE_20_STABLE
    • Rank:
      1196

      Description

      When viewing the gradebook the groups to filter the results by are determined by the default grouping id set in the course settings.

      In the file lib/grouplib.php the function groups_print_course_menu which is responsible for printing the group menu selector calls the function groups_get_all_groups on line 349 and 365 which passes the course's default grouping id, resulting in only groups displaying that belong to that particular default grouping. I believe the default grouping id should not be considered when displaying groups to filter by.

      Fix: Pass 0 as the grouping id.

      Temporary Fix: To display all groups in the select box you must change the course's setting default grouping to none.

        Activity

          People

          • Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated: