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

Grade report: Error for ungraded quiz without view hidden permission

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.1.4, 3.2.1
    • Fix Version/s: 3.1.5, 3.2.2
    • Component/s: Gradebook
    • Labels:
    • Testing Instructions:
      Hide

      1. Create new course with all default settings.
      2. Enrol a test account user as manager on the course, and enrol a second test account as a student.
      3. Go to the permissions screen and remove the moodle/grade:viewhidden capability from Manager on the course
      4. On the course main page, add an quiz. Use default settings. Save and display.
      5. Edit the quiz. Change the max grade to '0'.
      6. Log in using the manager test account.
      7. View the gradebook

      EXPECTED: Gradebook should display correctly, showing the student with total (no marks) and no grade items.
      BEFORE FIX: An error message displays: 'Incorrect size of arrays in params of grade_grade::get_hiding_affected()!'

      Show
      1. Create new course with all default settings. 2. Enrol a test account user as manager on the course, and enrol a second test account as a student. 3. Go to the permissions screen and remove the moodle/grade:viewhidden capability from Manager on the course 4. On the course main page, add an quiz. Use default settings. Save and display. 5. Edit the quiz. Change the max grade to '0'. 6. Log in using the manager test account. 7. View the gradebook EXPECTED: Gradebook should display correctly, showing the student with total (no marks) and no grade items. BEFORE FIX: An error message displays: 'Incorrect size of arrays in params of grade_grade::get_hiding_affected()!'
    • Affected Branches:
      MOODLE_31_STABLE, MOODLE_32_STABLE
    • Fixed Branches:
      MOODLE_31_STABLE, MOODLE_32_STABLE
    • Pull Master Branch:
      MDL-57601-master

      Description

      In the following situation:

      1. The course contains a quiz which is ungraded (has max grade set to 0)
      2. The current user has permission to view the grader report, but not to view hidden grades

      An error occurs when the user tries to view that grader report, and they cannot see grades.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  13/Mar/17