Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

MDL-40971 grade: Fixes missing setType() and $PAGE->layout for Outcom…

…es/import which results in errors in 2.5 Clean theme
  • Loading branch information...
commit fff86d45c148f6e7b29361054278ef89dac51a70 1 parent 75d8d06
@lazydaisy lazydaisy authored
View
1  grade/edit/outcome/import.php
@@ -33,6 +33,7 @@
$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) {
View
2  grade/edit/outcome/import_outcomes_form.php
@@ -38,7 +38,7 @@ public function definition() {
$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())) {
Please sign in to comment.
Something went wrong with that request. Please try again.