MDL-33576: If grade set to "No grade" in mod_assign hide inputs for quickgrading
authorDamyon Wiese <damyon.wiese@netspot.com.au>
Thu, 7 Jun 2012 04:00:34 +0000 (12:00 +0800)
committerDamyon Wiese <damyon.wiese@netspot.com.au>
Wed, 13 Jun 2012 00:55:02 +0000 (08:55 +0800)
mod/assign/locallib.php

index 86e8b92..0778a89 100644 (file)
@@ -894,7 +894,7 @@ class assign {
 
         if ($this->get_instance()->grade >= 0) {
             // Normal number
-            if ($editing) {
+            if ($editing && $this->get_instance()->grade > 0) {
                 if ($grade < 0) {
                     $displaygrade = '';
                 } else {