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

When grading students submitted assignments 'next' does not open next ungraded assignment

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Won't Fix
    • Affects Version/s: 2.0, 2.0.1, 2.0.2
    • Fix Version/s: None
    • Component/s: Assignment (2.2)
    • Labels:
      None
    • Environment:
      apache
    • Database:
      MySQL
    • Affected Branches:
      MOODLE_20_STABLE

      Description

      I wan't to grade an uploadsingle assignment and use the grading GUI in assignment, not all of the students have already submitted an assignment
      What happens
      -----------------------
      I open the overview of the submitted assignment, see all students with or without submitted assignments and choose the first not graded submitted assignment to grade. (click on status->grade not with quickgrading) The new grading window opens, with the url:...mode=single&filter=0&offset=2
      I click next and expect that the next not graded assignment opens but it's another person (later in the overview-list) and again next ... some students does never apear and in the end there are no buttons but i did not have graded all the subissions.
      The same thing happens when I choose to see only the submitted or already graded students in the overview table.
      A wrong array is stored because in the first url there is the variable 'filter' and this filter disapears in the code .

      One problem is in lib.php near line 964 that the filter in the url is set to 0 or 1 or 2 and in the code is says:
      if($filter == 'submitted')

      { $where .= 's.timemodified > 0 AND '; }

      else if($filter == 'requiregrading')

      { $where .= 's.timemarked < s.timemodified AND '; }

      another problem is, that somebody forgot to set the filter in some functions
      In the attachment it shows how I solved the problem ...

        Gliffy Diagrams

        1. moodle_assignment_lib.diff
          2 kB
          Katja Krüger
        2. uploadsingle_assignment_class.diff
          2 kB
          Katja Krüger

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: