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

Broken students grades display

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Duplicate
    • Affects Version/s: 2.2.3
    • Fix Version/s: None
    • Component/s: Gradebook
    • Database:
      MySQL
    • Testing Instructions:
      Hide

      For this test you will need a student and a teacher/admin. You'll also need two browsers. For example firefox and chrome.

      In advanced settings make sure that Enable conditional access is ticked.

      Go to the categories and items screen in the gradebook.
      You'll need a category containing a single activity. Create these if necessary.
      The activity and category should be visible.

      Edit the activity settings and add a condition under "Restrict access". Make it a condition that the student will not meet. I used requiring the user field "Yahoo ID" to be not empty.
      Make sure that "before activity can be accessed" is set to "hide activity entirely".

      As both the student and the teacher/admin go to the gradebook and go to the user report. One in each browser. Both users should be viewing the student's user report. The teacher/admin will need to select the specific student on the user report.
      Make sure that the formatting is ok. It should not be like the student view screenshot attached to this issue.

      As the student go enter the Yahoo ID or whatever they have to do to satisfy the condition.

      Reload the user report as both users. Check it still displays ok.

      As teacher/admin go to the categories and items screen and hide the activity.
      Reload the user report as both users. Check it still displays ok.

      Show
      For this test you will need a student and a teacher/admin. You'll also need two browsers. For example firefox and chrome. In advanced settings make sure that Enable conditional access is ticked. Go to the categories and items screen in the gradebook. You'll need a category containing a single activity. Create these if necessary. The activity and category should be visible. Edit the activity settings and add a condition under "Restrict access". Make it a condition that the student will not meet. I used requiring the user field "Yahoo ID" to be not empty. Make sure that "before activity can be accessed" is set to "hide activity entirely". As both the student and the teacher/admin go to the gradebook and go to the user report. One in each browser. Both users should be viewing the student's user report. The teacher/admin will need to select the specific student on the user report. Make sure that the formatting is ok. It should not be like the student view screenshot attached to this issue. As the student go enter the Yahoo ID or whatever they have to do to satisfy the condition. Reload the user report as both users. Check it still displays ok. As teacher/admin go to the categories and items screen and hide the activity. Reload the user report as both users. Check it still displays ok.
    • Workaround:
      Hide

      None found

      Show
      None found
    • Affected Branches:
      MOODLE_22_STABLE
    • Pull Master Branch:
      MDL-33117_grade_display

      Description

      Viewing individual user grades as a teacher (user grade report) is fine, but students' view is seriously broken.

      Please see attached screen captures from a real production site. First one (teacher_view)is user grades viewed as a teacher. This is nothing wrong with this view.
      Second attachment (student_view) shows user grades but viewed when logged in as a student. The generated HTML is clearly broken here.

        Attachments

        1. AndrewAfterFix.png
          AndrewAfterFix.png
          113 kB
        2. AndrewBeforeFix.png
          AndrewBeforeFix.png
          112 kB
        3. AndrewCannotBreakUserReport.png
          AndrewCannotBreakUserReport.png
          93 kB
        4. backup-moodle2-course-grades_-_groupings-20120921-0910-an.mbz
          30 kB
        5. groupings_-_student.png
          groupings_-_student.png
          26 kB
        6. mark_admin_course_layout.png
          mark_admin_course_layout.png
          35 kB
        7. mark_admin_grade_layout.png
          mark_admin_grade_layout.png
          44 kB
        8. mark_student_another_grade_layout.png
          mark_student_another_grade_layout.png
          15 kB
        9. mark_student_grade_layout.png
          mark_student_grade_layout.png
          23 kB
        10. student_view.png
          student_view.png
          149 kB
        11. teacher_view.png
          teacher_view.png
          186 kB
        12. thomash-haines-grade-report-after-patch.png
          thomash-haines-grade-report-after-patch.png
          61 kB
        13. thomash-haines-grade-report-before-patch.png
          thomash-haines-grade-report-before-patch.png
          69 kB

          Issue Links

            Activity

              People

              • Votes:
                61 Vote for this issue
                Watchers:
                41 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: