MDL-36095 Section availability: Make behaviour consistent with activities

This commit is contained in:
sam marshall 2012-10-17 12:53:00 +01:00
parent 10ad21dc9a
commit b12d8cd881
3 changed files with 45 additions and 19 deletions

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);