MDL-36095 Section availability: Make behaviour consistent with activities

This commit is contained in:
sam marshall
2013-01-07 15:55:12 +00:00
parent 10ad21dc9a
commit b12d8cd881
3 changed files with 45 additions and 19 deletions
+1 -1
View File
@@ -57,7 +57,7 @@ if (!empty($CFG->enableavailability)) {
}
$mform = new editsection_form($PAGE->url, array('course' => $course, 'editoroptions' => $editoroptions,
'cs' => $section, 'showavailability' => $section->showavailability));
'cs' => $section));
$mform->set_data($section); // set current value
$returnurl = course_get_url($course, $sectionreturn);