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

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Not a bug
    • 2.2.10
    • None
    • Gradebook
    • None
    • 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

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

              Dates

                Created:
                Updated:
                Resolved: