From b23445df003df4f99f275af5a5730ded571f1964 Mon Sep 17 00:00:00 2001 From: Noemie Ariste Date: Thu, 18 Jul 2024 09:40:15 +1200 Subject: [PATCH] Fix regression introduced in cdc985c --- classes/recompletion_form.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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'));