Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-17246

Hidden Grades and Hidden Grades Capability

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Duplicate
    • 1.9.3
    • 2.0
    • Gradebook
    • None
    • MOODLE_19_STABLE
    • MOODLE_20_STABLE

    Description

      There are bugs in the interactions between hidden grades, aggregation, and student view grades capability. Perhaps I am misunderstanding how these items should work, but it doesn't work as I think it should.

      1) If I set the capability "View hidden grades for owner" (moodle/grade.viewhidden), the user report displays hidden grades, regardless of the settings in the course for User Report.

      2) If I don't have this capability set, the hidden items are displayed or not displayed according the settings in the course for User Report, but the aggregations are affected in a funny way. Worse, the User Report I see as a Teacher has different totals than the User Report seen by the students.

      3) Some aggregations are not printed in the user report, even though those items are not hidden. They should up as empty grades.

      Some of the problem is the logic in moodle/grade/report/user/lib.php. The logic around line 175 depends only on the capability of viewing hidden grades and now on the course settings about whether these should be displayed. Also the logic for how hiding affects aggregate grades in the call to grade_grade::get_hiding_affected doesn't seem to be working correctly for aggregate grades.

      Let me know if you have trouble reproducing this and I'll try to create a small test case for you.

      Attachments

        Issue Links

          Activity

            People

              skodak Petr Skoda
              rsturley Steve Turley
              Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Sujith Haridasan
              Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                24/Nov/10