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

    • Icon: Bug Bug
    • Resolution: Not a bug
    • Icon: Minor Minor
    • None
    • 2.2.10
    • Gradebook
    • None
    • MOODLE_22_STABLE

      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.

            emerrill Eric Merrill
            luketucker Luke Tucker
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.