Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

MDL-36511 course: Save "completion starts on enrolment" disabled state

  • Loading branch information...
commit e014ed78dd23f3bc22a10c6094f1ed77defced81 1 parent d63a406
@srynot4sale srynot4sale authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  course/edit_form.php
View
2  course/edit_form.php
@@ -252,7 +252,7 @@ function definition() {
array(0=>get_string('completiondisabled','completion'), 1=>get_string('completionenabled','completion')));
$mform->setDefault('enablecompletion', $courseconfig->enablecompletion);
- $mform->addElement('checkbox', 'completionstartonenrol', get_string('completionstartonenrol', 'completion'));
+ $mform->addElement('advcheckbox', 'completionstartonenrol', get_string('completionstartonenrol', 'completion'));
$mform->setDefault('completionstartonenrol', $courseconfig->completionstartonenrol);
$mform->disabledIf('completionstartonenrol', 'enablecompletion', 'eq', 0);
} else {
Please sign in to comment.
Something went wrong with that request. Please try again.