Merge branch 'MDL-67436-master' of https://github.com/jondo/moodle

This commit is contained in:
Adrian Greeve 2020-07-21 08:28:53 +08:00
commit d817ccaca5

View File

@ -46,7 +46,7 @@ class mod_assign_grading_options_form extends moodleform {
$mform->addElement('header', 'general', get_string('gradingoptions', 'assign'));
// Visible elements.
$options = array(-1 => get_string('all'), 10 => '10', 20 => '20', 50 => '50', 100 => '100');
$options = array(10 => '10', 20 => '20', 50 => '50', 100 => '100', -1 => get_string('all'));
$maxperpage = get_config('assign', 'maxperpage');
if (isset($maxperpage) && $maxperpage != -1) {
unset($options[-1]);