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

Teachers appear in quiz reports when ''enrolled users who have, or have not, attempted the quiz" option selected

    XMLWordPrintable

    Details

    • Testing Instructions:
      Hide
      1. Create a course.
      2. Enrol a student and a non-editing teacher.
      3. Make a group 'Test group' and put both users in the group.
      4. Add a quiz, set to 'Separate groups' mode.
      5. Go to Quiz settings -> results -> Grades.
      6. Change the setting to "enrolled users who have, or have not, attempted the quiz" and show the report.
      7. Verify the student is listed and the teacher is not.
      8. Change the group selector to 'Test group'
      9. Verify the student is listed and the teacher is not.
      10. Change the group selector back to 'All groups'
      11. Change the report setting to 'users who have attempted the quiz.
      12. Verify there is not data displayed (because no-one has attempted the quiz.

      If you are paranoid, you could also click through the 'Grades' and 'Response' reports for the quizzes here: https://qa.moodledemo.net/course/view.php?id=2#section-9, just to provide an added check that there are no unexpected regressions.

      Show
      Create a course. Enrol a student and a non-editing teacher. Make a group 'Test group' and put both users in the group. Add a quiz, set to 'Separate groups' mode. Go to Quiz settings -> results -> Grades. Change the setting to "enrolled users who have, or have not, attempted the quiz" and show the report. Verify the student is listed and the teacher is not. Change the group selector to 'Test group' Verify the student is listed and the teacher is not. Change the group selector back to 'All groups' Change the report setting to 'users who have attempted the quiz. Verify there is not data displayed (because no-one has attempted the quiz. If you are paranoid, you could also click through the 'Grades' and 'Response' reports for the quizzes here: https://qa.moodledemo.net/course/view.php?id=2#section-9 , just to provide an added check that there are no unexpected regressions.
    • Affected Branches:
      MOODLE_36_STABLE, MOODLE_37_STABLE
    • Fixed Branches:
      MOODLE_36_STABLE, MOODLE_37_STABLE
    • Pull 3.7 Branch:
    • Pull Master Branch:

      Description

      To reproduce:

      1. Create a course.
      2. Enrol a student and a non-editing teacher.
      3. Make a group 'Test group' and put both users in the group.
      4. Add a quiz, set to 'Separate groups' mode.
      5. Go to Quiz settings -> results -> Grades.
      6. Change the setting to "enrolled users who have, or have not, attempted the quiz"

      Expected result: the student is listed. The teacher is not. (It is acutally controlled by the capabilities 'mod/quiz:attempt', 'mod/quiz:reviewmyattempts', not roles.)

      Actual result: both users are listed.

      Note: if you set the Group selector to own show people in 'Test group' then the works and only the student is shown.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              timhunt Tim Hunt
              Reporter:
              timhunt Tim Hunt
              Peer reviewer:
              John Beedell
              Integrator:
              Andrew Nicols
              Tester:
              Gladys Basiana
              Participants:
              Component watchers:
              Tim Hunt, Andrew Nicols, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
              Votes:
              2 Vote for this issue
              Watchers:
              8 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Fix Release Date:
                11/Nov/19

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 1 hour, 30 minutes
                  1h 30m