diff --git a/grade/edit/outcome/import.php b/grade/edit/outcome/import.php index 6e21e46bd78..506205667fc 100644 --- a/grade/edit/outcome/import.php +++ b/grade/edit/outcome/import.php @@ -33,6 +33,7 @@ $action = optional_param('action', '', PARAM_ALPHA); $scope = optional_param('scope', 'custom', PARAM_ALPHA); $PAGE->set_url('/grade/edit/outcome/import.php', array('courseid' => $courseid)); +$PAGE->set_pagelayout('admin'); /// Make sure they can even access this course if ($courseid) { diff --git a/grade/edit/outcome/import_outcomes_form.php b/grade/edit/outcome/import_outcomes_form.php index 163e0f0a7b0..46ec51822c4 100644 --- a/grade/edit/outcome/import_outcomes_form.php +++ b/grade/edit/outcome/import_outcomes_form.php @@ -38,7 +38,7 @@ class import_outcomes_form extends moodleform { $mform->addElement('hidden', 'action', 'upload'); $mform->setType('action', PARAM_ALPHANUMEXT); $mform->addElement('hidden', 'courseid', $PAGE->course->id); - $mform->setType('id', PARAM_INT); + $mform->setType('courseid', PARAM_INT); $scope = array(); if (($PAGE->course->id > 1) && has_capability('moodle/grade:manage', context_system::instance())) {