Skip to content

Commit

Permalink
MDL-43347 grades: consistent interface for drop lowest setting
Browse files Browse the repository at this point in the history
  • Loading branch information
mackensen committed Jun 25, 2014
1 parent 7784c3a commit 74dd7a3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion grade/edit/tree/category_form.php
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,8 @@ function definition() {
$mform->setAdvanced('keephigh');
}

$mform->addElement('select', 'droplow', get_string('droplow', 'grades'), $options);
$mform->addElement('text', 'droplow', get_string('droplow', 'grades'), 'size="3"');
$mform->setType('droplow', PARAM_INT);
$mform->addHelpButton('droplow', 'droplow', 'grades');
$mform->disabledIf('droplow', 'keephigh', 'noteq', 0);
if ((int)$CFG->grade_droplow_flag & 2) {
Expand Down

0 comments on commit 74dd7a3

Please sign in to comment.