Permalink
Browse files

MDL-33699: Allow grades of 0 in assignment quickgrading

  • Loading branch information...
1 parent 8db5df0 commit a13edd499d37c873a57bedad7f19bca20c12367b Damyon Wiese committed Jun 15, 2012
Showing with 5 additions and 1 deletion.
  1. +5 −1 mod/assign/locallib.php
View
@@ -2593,7 +2593,11 @@ private function process_save_quick_grades() {
// 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;

0 comments on commit a13edd4

Please sign in to comment.