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

mod_assign: clicking on the grade icon causes an error

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Duplicate
    • Affects Version/s: 2.4
    • Fix Version/s: None
    • Component/s: Assignment
    • Labels:
      None
    • Affected Branches:
      MOODLE_24_STABLE

      Description

      If I go into an instance of mod_assign where a student has a graded submission and click on the tick icon in the grade column I get the following. The URL is /mod/assign/view.php?id=104&rownum=-1&action=grade

      Notice: Undefined offset: -1 in /home/andrew/Desktop/code/moodle/dev/master/mod/assign/locallib.php on line 2068

      Coding error detected, it must be fixed by a programmer: Row is out of bounds for the current grading table: -1

      More information about this error
      Debug info:
      Error code: codingerror
      Stack trace:

      line 2073 of /mod/assign/locallib.php: coding_exception thrown
      line 398 of /mod/assign/locallib.php: call to assign->view_single_grade_page()
      line 53 of /mod/assign/view.php: call to assign->view()

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              damyon Damyon Wiese
              Reporter:
              andyjdavis Andrew Davis
              Participants:
              Component watchers:
              Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias
              Votes:
              1 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: