Permalink
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...
lazydaisy committed Oct 30, 2013
1 parent 75d8d06 commit fff86d45c148f6e7b29361054278ef89dac51a70
Showing with 2 additions and 1 deletion.
  1. +1 −0 grade/edit/outcome/import.php
  2. +1 −1 grade/edit/outcome/import_outcomes_form.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) {
@@ -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())) {

0 comments on commit fff86d4

Please sign in to comment.