1
0
mirror of https://github.com/moodle/moodle.git synced 2025-03-15 05:00:06 +01:00

MDL-58102 completion: Don't expand completion

The form looks wierd with one expanded section.

Part of MDL-55611 epic.
This commit is contained in:
Damyon Wiese 2017-03-21 13:36:35 +08:00
parent 12a0c74a29
commit 7737c79792

@ -628,9 +628,6 @@ abstract class moodleform_mod extends moodleform {
}
if ($completion->is_enabled()) {
$mform->addElement('header', 'activitycompletionheader', get_string('activitycompletion', 'completion'));
// With defaults being set, it would be better to expand this section so that the creator can customise when necessary.
$mform->setExpanded('activitycompletionheader');
// Unlock button for if people have completed it (will
// be removed in definition_after_data if they haven't)
$mform->addElement('submit', 'unlockcompletion', get_string('unlockcompletion', 'completion'));