diff --git a/course/moodleform_mod.php b/course/moodleform_mod.php index 8a13aa85e48..4c8c25feab7 100644 --- a/course/moodleform_mod.php +++ b/course/moodleform_mod.php @@ -692,6 +692,8 @@ abstract class moodleform_mod extends moodleform { $mform->setType('gradepass', PARAM_RAW); if (!$this->_features->rating) { $mform->disabledIf('gradepass', 'grade[modgrade_type]', 'eq', 'none'); + } else { + $mform->disabledIf('gradepass', 'assessed', 'eq', '0'); } } }