Skip to content

Commit

Permalink
MDL-35010 availability: fix sometimes missing fieldset
Browse files Browse the repository at this point in the history
  • Loading branch information
stronk7 committed Aug 22, 2012
1 parent 7033316 commit 996e735
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion course/editsection_form.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand All @@ -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');
}
Expand Down

0 comments on commit 996e735

Please sign in to comment.