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

Broken students grades display

    Details

    • 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.

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

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

                  Dates

                  • Created:
                    Updated:
                    Resolved: