Skip to content
Browse files

MDL-35010 availability: fix sometimes missing fieldset

  • Loading branch information...
1 parent 7033316 commit 996e735693ab62ed1b12090687c3e33f2936c683 @stronk7 stronk7 committed Aug 22, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 course/editsection_form.php
View
2 course/editsection_form.php
@@ -38,6 +38,7 @@ public function definition_after_data() {
$course = $this->_customdata['course'];
if (!empty($CFG->enableavailability)) {
+ $mform->addElement('header', '', get_string('availabilityconditions', 'condition'));
// Grouping conditions - only if grouping is enabled at site level
if (!empty($CFG->enablegroupmembersonly)) {
$options = array();
@@ -49,7 +50,6 @@ public function definition_after_data() {
$grouping->name, true, array('context' => $context));
}
}
- $mform->addElement('header', '', get_string('availabilityconditions', 'condition'));
$mform->addElement('select', 'groupingid', get_string('groupingsection', 'group'), $options);
$mform->addHelpButton('groupingid', 'groupingsection', 'group');
}

0 comments on commit 996e735

Please sign in to comment.
Something went wrong with that request. Please try again.