Permalink
Browse files

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

  • Loading branch information...
1 parent 10ad21d commit 7de454919b85a29b7147bd931fdb6c1bba1d20ff @srynot4sale srynot4sale committed Nov 11, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 course/edit_form.php
View
2 course/edit_form.php
@@ -257,7 +257,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 7de4549

Please sign in to comment.