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

    • Sub-task
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.9.1
    • 1.9.5
    • Gradebook
    • None
    • RedHat, Apache 2, PHP 5.1.6
    • MOODLE_19_STABLE
    • 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

              skodak Petr Skoda
              prioritypie Ross Hume
              Nicolas Connault Nicolas Connault
              Adrian Greeve, Ilya Tregubov, Kevin Percy, Mathew May, Mihail Geshoski, Shamim Rezaie
              Votes:
              16 Vote for this issue
              Watchers:
              12 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                13/May/09