Permalink
Browse files

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

  • Loading branch information...
1 parent d63a406 commit e014ed78dd23f3bc22a10c6094f1ed77defced81 Aaron Barnes committed Nov 11, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 course/edit_form.php
View
@@ -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 {

0 comments on commit e014ed7

Please sign in to comment.