mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 22:08:20 +01:00
MDL-43347 grades: convert keep highest to text field
This commit is contained in:
parent
74dd7a3e84
commit
30cc5d70ce
@ -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');
|
||||
|
Loading…
x
Reference in New Issue
Block a user