Skip to content

Commit

Permalink
MDL-19090 fixed user report preferences; merged from MOODLE_19_STABLE
Browse files Browse the repository at this point in the history
  • Loading branch information
skodak committed May 7, 2009
1 parent b8a3724 commit d69ef28
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions grade/report/user/lib.php
Expand Up @@ -453,14 +453,14 @@ function grade_report_user_settings_definition(&$mform) {
$mform->setHelpButton('report_user_showpercentage', array('showpercentage', get_string('showpercentage', 'grades'), 'grade'));

$options = array(-1 => get_string('default', 'grades'),
0 => get_string('hide'),
0 => get_string('shownohidden', 'grades'),
1 => get_string('showhiddenuntilonly', 'grades'),
2 => get_string('show'));
2 => get_string('showallhidden', 'grades'));

if (empty($CFG->grade_report_user_showhiddenitems)) {
$options[-1] = get_string('defaultprev', 'grades', $options[0]);
} else {
$options[-1] = get_string('defaultprev', 'grades', $options[1]);
$options[-1] = get_string('defaultprev', 'grades', $options[$CFG->grade_report_user_showhiddenitems]);
}

$mform->addElement('select', 'report_user_showhiddenitems', get_string('showhiddenitems', 'grades'), $options);
Expand Down

0 comments on commit d69ef28

Please sign in to comment.