diff --git a/course/editsection_form.php b/course/editsection_form.php index 2e4f5babafd..4ea413b5f3e 100644 --- a/course/editsection_form.php +++ b/course/editsection_form.php @@ -47,6 +47,9 @@ class editsection_form extends moodleform { $mform->addElement('hidden', 'id'); $mform->setType('id', PARAM_INT); + $mform->addElement('hidden', 'course', 0); + $mform->setType('course', PARAM_INT); + // additional fields that course format has defined $courseformat = course_get_format($course); $formatoptions = $courseformat->section_format_options(true);