MDL-43347 grades: convert keep highest to text field

This commit is contained in:
Charles Fulton
2014-07-01 07:34:23 -07:00
parent c9bd902bd3
commit 3add7d878f
+2 -7
View File
@@ -86,13 +86,8 @@ class edit_category_form extends moodleform {
$mform->setAdvanced('aggregatesubcats');
}
$options = array(0 => get_string('none'));
for ($i=1; $i<=20; $i++) {
$options[$i] = $i;
}
$mform->addElement('select', 'keephigh', get_string('keephigh', 'grades'), $options);
$mform->addElement('text', 'keephigh', get_string('keephigh', 'grades'), 'size="3"');
$mform->setType('keephigh', PARAM_INT);
$mform->addHelpButton('keephigh', 'keephigh', 'grades');
if ((int)$CFG->grade_keephigh_flag & 2) {
$mform->setAdvanced('keephigh');