Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-18083 META: Gradebook improvements - Stage 1
  3. MDL-15617

Showing all groups in gradebook when user restricted to one

    XMLWordPrintable

    Details

    • Type: Sub-task
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.9.1
    • Fix Version/s: 1.9.5
    • Component/s: Gradebook
    • Labels:
      None
    • Environment:
      RedHat, Apache 2, PHP 5.1.6
    • Affected Branches:
      MOODLE_19_STABLE
    • Fixed Branches:
      MOODLE_19_STABLE

      Description

      When a "teacher" role is restricted to one group, they can see grades of ALL students in the gradebook. They should just see their group.

      The course group settings are "Separate" and "Forced".

      If they are a member of more than one group, and the drop-down group list is shown, then the gradebook list is filtered correctly.

      I believe the issue might be in /grade/report/grader/lib.php ~ line 141. The function for setting the group selection "WHERE" clause (setup_groups) is only fired if the user_preference 'showgroups' is set. However, I don't think this gets set if the teacher is only in one group. By removing the test for this preference before running the setup_groups function I can get the gradebook to operate as it should, but I don't know if this is breaking anything else.

      Whilst similar to some of the other issues with the gradebook, I think it is slightly different, and I am not alone: http://moodle.org/mod/forum/discuss.php?d=90830 and http://moodle.org/mod/forum/discuss.php?d=101088#p446463

      Thanks for any help, and as this is my first week working with Moodle then go easy...

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                16 Vote for this issue
                Watchers:
                12 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  13/May/09