Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

  • Loading branch information...
commit 7de454919b85a29b7147bd931fdb6c1bba1d20ff 1 parent 10ad21d
Aaron Barnes srynot4sale authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  course/edit_form.php
2  course/edit_form.php
View
@@ -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 {
Please sign in to comment.
Something went wrong with that request. Please try again.