MDL-66074 core_form: Foce point value to always be 100
authorMathew May <mathewm@hotmail.co.nz>
Mon, 28 Oct 2019 04:58:32 +0000 (12:58 +0800)
committerMathew May <mathewm@hotmail.co.nz>
Wed, 30 Oct 2019 05:03:59 +0000 (13:03 +0800)
lib/form/modgrade.php

index b843629..863f1b1 100644 (file)
@@ -510,7 +510,7 @@ class MoodleQuickForm_modgrade extends MoodleQuickForm_group {
                         }
                     } else {
                         $this->gradetypeformelement->setValue('none');
-                        $this->maxgradeformelement->setValue('');
+                        $this->maxgradeformelement->setValue(100);
                     }
                 }
                 break;