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

        Mark Nelson created issue -
        Andrew Davis made changes -
        Field Original Value New Value
        Assignee moodle.com [ moodle.com ] Andrew Davis [ andyjdavis ]
        Andrew Davis made changes -
        QA Assignee andrew
        Mark Nelson made changes -
        Affects Version/s 1.9.9 [ 10405 ]
        Affects Version/s 1.9.8 [ 10400 ]
        Affects Version/s 2.0 [ 10122 ]
        Andrew Davis made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Fix Version/s 1.9.11 [ 10410 ]
        Resolution Fixed [ 1 ]
        Tim Hunt made changes -
        Resolution Fixed [ 1 ]
        Status Resolved [ 5 ] Reopened [ 4 ]
        Martin Dougiamas made changes -
        Workflow jira [ 35606 ] MDL Workflow [ 47764 ]
        Martin Dougiamas made changes -
        Fix Version/s 1.9.12 [ 10536 ]
        Fix Version/s 1.9.11 [ 10410 ]
        Martin Dougiamas made changes -
        Workflow MDL Workflow [ 47764 ] MDL Full Workflow [ 76834 ]
        Martin Dougiamas made changes -
        Fix Version/s STABLE backlog [ 10463 ]
        Fix Version/s 1.9.12 [ 10536 ]
        Andrew Davis made changes -
        Assignee Andrew Davis [ andyjdavis ]

          People

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

            Dates

            • Created:
              Updated: