Skip to content

Commit

Permalink
Merge pull request #157 from ewallah/ewallah-patch-2
Browse files Browse the repository at this point in the history
Invalid default value for recompletiontype.
  • Loading branch information
danmarsden authored Mar 7, 2024
2 parents 74c8cc7 + 80c377d commit 82626e8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,9 @@
// Type of recompletion - range(duration) or schedule(absolute times, based on cron schedule).
$settings->add(new admin_setting_configselect('local_recompletion/recompletiontype',
new lang_string('recompletiontype', 'local_recompletion'),
new lang_string('recompletiontype_help', 'local_recompletion'), 'range', [
new lang_string('recompletiontype_help', 'local_recompletion'),
local_recompletion_recompletion_form::RECOMPLETION_TYPE_DISABLED,
[
local_recompletion_recompletion_form::RECOMPLETION_TYPE_DISABLED => get_string(
'recompletiontype:disabled',
'local_recompletion'
Expand Down

0 comments on commit 82626e8

Please sign in to comment.