MDL-40971 grade: Importing Outcomes breaks Clean theme.

This commit is contained in:
Mary Evans
2013-10-30 23:56:17 +00:00
parent 67d4599aff
commit f859cd373b
2 changed files with 2 additions and 1 deletions
+1
View File
@@ -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) {
+1 -1
View File
@@ -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())) {