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

Links to a single student's grading page from the Assignment Grading page goes to wrong student

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.3.1
    • Fix Version/s: 2.3.3
    • Component/s: Assignment
    • Labels:
      None
    • Database:
      PostgreSQL
    • Testing Instructions:
      Hide

      Prerequisite: PostgreSQL

      1. Create a new assignment in a course with multiple students. Enable at least one submission plugin.
      2. Leave blind marking disabled
      3. Go to the grading table in the assignment (View/grade all submissions)
      4. Click on the "Last modified (submission)" column header to sort by the submission date
      5. Click on the "Last modified (grade)" column header to sort by the graded date
      6. Remember the name of the first student in the list
      7. Click on the grade button for the first student in the list
        Expected result: The name of the student in the grading page matches the first row in the grading table
        Actual result: A random student will be shown in the grading page
      Show
      Prerequisite: PostgreSQL Create a new assignment in a course with multiple students. Enable at least one submission plugin. Leave blind marking disabled Go to the grading table in the assignment (View/grade all submissions) Click on the "Last modified (submission)" column header to sort by the submission date Click on the "Last modified (grade)" column header to sort by the graded date Remember the name of the first student in the list Click on the grade button for the first student in the list Expected result: The name of the student in the grading page matches the first row in the grading table Actual result: A random student will be shown in the grading page
    • Workaround:
      Hide

      Sort the grading table by a unique column (like lastname) before opening the single grading page.

      Show
      Sort the grading table by a unique column (like lastname) before opening the single grading page.
    • Affected Branches:
      MOODLE_23_STABLE
    • Fixed Branches:
      MOODLE_23_STABLE
    • Pull Master Branch:

      Description

      When the current sort for the grading table is for a column that contains duplicate values (or no values) the returned order of rows is random. This affects the single grading page which is supposed to step through the rows in the grading table in a fixed order.

      This can be reliably triggered by sorting on the last modified (submission) column and then the last modified (grade) column when both of those columns contain no data as tablelib does not sort by any more than 2 columns (so this will ensure there are no other columns in the current sort).

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Votes:
                1 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  12/Nov/12