Merge branch 'WIP-MDL-60658-33' of https://github.com/chkhanu/moodle into MOODLE_33_STABLE

This commit is contained in:
Andrew Nicols
2018-03-07 11:37:45 +08:00
+1 -1
View File
@@ -408,7 +408,7 @@ abstract class moodleform_mod extends moodleform {
} else {
$grade = $scale;
}
if ($data['gradepass'] > $grade) {
if (unformat_float($data['gradepass']) > $grade) {
$errors['gradepass'] = get_string('gradepassgreaterthangrade', 'grades', $grade);
}
}