Skip to content
Browse files

MDL-37646 Assign: Quickgrading fix when using grading filters or lots…

… of students.
  • Loading branch information...
1 parent adedab3 commit afcc12e80b0eb1560a470eadf6c33b4ce9a33d97 @damyon damyon committed Jan 29, 2013
Showing with 3 additions and 0 deletions.
  1. +3 −0 mod/assign/locallib.php
View
3 mod/assign/locallib.php
@@ -3671,6 +3671,9 @@ private function process_save_quick_grades() {
$gradevalue = optional_param('quickgrade_' . $userid, '', PARAM_TEXT);
if($modified >= 0) {
$record->grade = unformat_float(optional_param('quickgrade_' . $record->userid, -1, PARAM_TEXT));
+ } else {
+ // This user was not in the grading table.
+ continue;
}
$record->lastmodified = $modified;
$record->gradinginfo = grade_get_grades($this->get_course()->id, 'mod', 'assign', $this->get_instance()->id, array($userid));

0 comments on commit afcc12e

Please sign in to comment.
Something went wrong with that request. Please try again.