Permalink
Browse files

MDL-35010 availability: fix sometimes missing fieldset

  • Loading branch information...
stronk7 committed Aug 22, 2012
1 parent c92d6f4 commit fb65ab00066a35756125781521719dcbfe0e71bb
Showing with 1 addition and 1 deletion.
  1. +1 −1 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'));
// String used by conditions more than once
$strcondnone = get_string('none', 'condition');
// Grouping conditions - only if grouping is enabled at site level
@@ -51,7 +52,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 fb65ab0

Please sign in to comment.