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

Quick grading causes JavaScript error when AJAX enabled in Grader report and max grade is No grade

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Not a bug
    • Affects Version/s: 2.2.10
    • Fix Version/s: None
    • Component/s: Gradebook
    • Labels:
      None
    • Affected Branches:
      MOODLE_22_STABLE

      Description

      In the Grader report a JavaScript error occurs when using quick grading and AJAX is enabled and the report contains an gradeable item with a max grade set to 'No grade'.

      The error is:
      Uncaught TypeError: Cannot call method 'on' of null

      This is happening because the module.js is not checking if this.grade is set when attaching a handler to the blur event for each grade input field.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              emerrill Eric Merrill
              Reporter:
              luketucker Luke Tucker
              Participants:
              Component watchers:
              Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias, Sujith Haridasan
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: