MDL-38833 core_grade: added a set_type for finalgrade

This commit is contained in:
Andrew Davis 2013-04-18 10:02:52 +08:00
parent 5f8a42728f
commit 15b0930288

View File

@ -58,6 +58,7 @@ class edit_grade_form extends moodleform {
if ($grade_item->gradetype == GRADE_TYPE_VALUE) {
// numeric grade
$mform->addElement('text', 'finalgrade', get_string('finalgrade', 'grades'));
$mform->setType('finalgrade', PARAM_RAW);
$mform->addHelpButton('finalgrade', 'finalgrade', 'grades');
$mform->disabledIf('finalgrade', 'overridden', 'notchecked');