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

"Grade" link in assignment submissions points to wrong student when multiple tabs are being used with different filter criteria

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Deferred
    • Icon: Major Major
    • None
    • 3.10.8, 3.11.4, 4.0
    • Assignment
    • MOODLE_310_STABLE, MOODLE_311_STABLE, MOODLE_400_STABLE

      We have been recently receiving reports of "Grade" links pointing to the wrong students.

      This is an issue that was reported multiple times in the past (and potentially fixed MDL-42306, MDL-44330) however still present.

      Steps to reproduce:

      1. Enroll a few students into a course
      2. Setup an assignment and add file submissions
      3. As a Teacher (or higher role) got the assignment grading table
      4. Leave filters unset
      5. In the browser, duplicate or open the page (Tab 1) in a new tab (Tab 2)
      6. Select First and Last Name letter filters 
      7. Go back to Tab 1 and click "Grade" on a student row
      8. See the name in the submission page does not match the student's name in the row

      Expected behavior:
      When I click on the "Grade" button on a student row, I open the submission for that student no matter what filters are selected in any browser tab.

      Actual behavior:
      When I click on the "Grade" button on a student row, I open the submission of the student in the same row position in the tab where I last applied the filters NOT the student I am clicking on.

       

      Example:

      The following example shows the issue on a local installation of Moodle 4. However, this was first identified and reproduced on our live server.

      Step 1: In Tab 1 I have the submissions page open with no filters selected, the first row shows student named Admin:

       

      Step 2: In Tab 2 I open the same page but filter the students by name, now the first row shows a student named Student Two:

       

       

      Step 3: When I go back to Tab 1, and I click on the "Grade" button that corresponds to Admin, the submission of Student Two is opened instead:

       

       

            Unassigned Unassigned
            Zanatta Susanna
            Votes:
            0 Vote for this issue
            Watchers:
            11 Start watching this issue

              Created:
              Updated:
              Resolved:

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

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