Moodle
  1. Moodle
  2. MDL-20724

Navigation can go into a deadend in essay question "manual grading" sorting results

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.9.9
    • Fix Version/s: 1.9.10
    • Component/s: Quiz
    • Labels:
      None
    • Database:
      Any
    • Affected Branches:
      MOODLE_19_STABLE
    • Fixed Branches:
      MOODLE_19_STABLE
    • Rank:
      26219

      Description

      When trying to manually grade [Quiz] essay question attempts, if attempts are sorted by the first letter of students' first or last names (the initialbars) and the sorting results are empty, links to see the original attempts or other sorting options will then become unavailable. From this point, there is no way to see view and manually grade anymore essay question attempts unless the instructor logout first and then log back in.

      Steps to reproduce
      ===============

      1. Login as a teacher to a course
      2. View a quiz with essay questions (that requires "manual grading")
      3. Click on Results tab
      4. Click on Manual Grading
      5. Click on letter link (First name, Surname) to sort the attempts, choosing a letter not represented in the attempts

      What happens
      ============
      The links to view all or sorted essay question attempts do not appear. The page only shows the message "There are no attempts to show". There is no way to navigate and view anymore essay question attempts. See screenshots.

      My temporary workaround is to change the /mod/quiz/report/grading/report.php at around line #251, to change the original

      $table->initialbars($usercount>20);

      to

      $table->initialbars(false);

      I'm sure that there is a better way to do this. Thoughts or comments? Thanks!

        Activity

        Hide
        Sam Hemelryk added a comment -

        I've just commit a fix for this issue, in this case the table wasn't being printed if there were no results. The solution was to ensure that the table was printed.
        Cheers
        Sam

        Show
        Sam Hemelryk added a comment - I've just commit a fix for this issue, in this case the table wasn't being printed if there were no results. The solution was to ensure that the table was printed. Cheers Sam

          People

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

            Dates

            • Created:
              Updated:
              Resolved: