Merge branch 'MDL-33699' of git://github.com/netspotau/moodle-mod_assign

This commit is contained in:
Dan Poltawski
2012-06-18 13:49:16 +08:00
+5 -1
View File
@@ -2582,7 +2582,11 @@ class assign {
// different ways to indicate no grade
continue;
}
if ($current->grade != $modified->grade) {
// Treat 0 and null as different values
if ($current->grade !== null) {
$current->grade = floatval($current->grade);
}
if ($current->grade !== $modified->grade) {
// grade changed
if ($this->grading_disabled($modified->userid)) {
continue;