Home
Documentation
Downloads
Demo
Tracker
Development
Translation
Moodle.net
Search
projects
/
moodle.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
87db6e2
)
MDL-37646 Assign: Quickgrading fix when using grading filters or lots of students.
author
Damyon Wiese
<damyon@moodle.com>
Tue, 29 Jan 2013 06:36:18 +0000
(14:36 +0800)
committer
Damyon Wiese
<damyon@moodle.com>
Tue, 29 Jan 2013 06:43:34 +0000
(14:43 +0800)
mod/assign/locallib.php
patch
|
blob
|
blame
|
history
diff --git
a/mod/assign/locallib.php
b/mod/assign/locallib.php
index
f61aa40
..
e63d0ff
100644
(file)
--- a/
mod/assign/locallib.php
+++ b/
mod/assign/locallib.php
@@
-2687,6
+2687,9
@@
class assign {
$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));