Skip to content

Commit

Permalink
MDL-37646 Assign: Quickgrading fix when using grading filters or lots…
Browse files Browse the repository at this point in the history
… of students.
  • Loading branch information
Damyon Wiese committed Jan 29, 2013
1 parent 87db6e2 commit 86cc12d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions mod/assign/locallib.php
Expand Up @@ -2687,6 +2687,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));
Expand Down

0 comments on commit 86cc12d

Please sign in to comment.