diff --git a/classes/recompletion_form.php b/classes/recompletion_form.php index c143fa5..f406089 100644 --- a/classes/recompletion_form.php +++ b/classes/recompletion_form.php @@ -64,7 +64,7 @@ public function definition() { self::RECOMPLETION_TYPE_ONDEMAND => get_string('recompletiontype:ondemand', 'local_recompletion'), self::RECOMPLETION_TYPE_SCHEDULE => get_string('recompletiontype:schedule', 'local_recompletion'), ]); - $mform->setDefault('recompletiontype', RECOMPLETION_TYPE_DISABLED); + $mform->setDefault('recompletiontype', self::RECOMPLETION_TYPE_DISABLED); $mform->addHelpButton('recompletiontype', 'recompletiontype', 'local_recompletion'); $mform->addElement('checkbox', 'recompletionemailenable', get_string('recompletionemailenable', 'local_recompletion'));