Merge branch 'MDL-62188-master' of git://github.com/sarjona/moodle
authorJun Pataleta <jun@moodle.com>
Thu, 26 Apr 2018 06:50:04 +0000 (14:50 +0800)
committerJun Pataleta <jun@moodle.com>
Thu, 26 Apr 2018 06:50:04 +0000 (14:50 +0800)
enrol/manual/classes/enrol_users_form.php

index dcb5f29..da4cd68 100644 (file)
@@ -129,6 +129,7 @@ class enrol_manual_enrol_users_form extends moodleform {
 
         $mform->addElement('checkbox', 'recovergrades', get_string('recovergrades', 'enrol'));
         $mform->setAdvanced('recovergrades');
+        $mform->setDefault('recovergrades', $CFG->recovergradesdefault);
         $mform->addElement('select', 'duration', get_string('defaultperiod', 'enrol_manual'), $periodmenu);
         $mform->setDefault('duration', $defaultperiod);
         $mform->setAdvanced('duration');