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

Grade report: Error for ungraded quiz without view hidden permission

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • 3.1.5, 3.2.2
    • 3.1.4, 3.2.1
    • Gradebook
    • MOODLE_31_STABLE, MOODLE_32_STABLE
    • MOODLE_31_STABLE, MOODLE_32_STABLE
    • MDL-57601-master
    • 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()!'

      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.

            quen Sam Marshall
            quen Sam Marshall
            Tim Hunt Tim Hunt
            Dan Poltawski Dan Poltawski
            Jake Dallimore Jake Dallimore
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.