Permalink
Browse files

MDL-43347 grades: convert keep highest to text field

  • Loading branch information...
1 parent 78e6292 commit 83f78c7c5e2b896ffb164b50a2d36e10eab47b9b @mackensen mackensen committed Jun 26, 2014
Showing with 2 additions and 7 deletions.
  1. +2 −7 grade/edit/tree/category_form.php
@@ -86,13 +86,8 @@ function definition() {
$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');

0 comments on commit 83f78c7

Please sign in to comment.