diff --git a/grade/report/grader/module.js b/grade/report/grader/module.js index 4a36598..78d3b0e 100644 --- a/grade/report/grader/module.js +++ b/grade/report/grader/module.js @@ -754,8 +754,10 @@ M.gradereport_grader.classes.existingfield = function(ajax, userid, itemid) { this.oldgrade = ''; } - // On blur save any changes in the grade field - this.grade.on('blur', this.submit, this); + if(this.grade) { + // On blur save any changes in the grade field + this.grade.on('blur', this.submit, this); + } // Check if feedback is enabled if (this.editfeedback) {