mirror of
https://github.com/moodle/moodle.git
synced 2025-04-22 08:55:15 +02:00
MDL-40971 grade: Importing Outcomes breaks Clean theme.
This commit is contained in:
parent
68291f2d57
commit
de957f5848
@ -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) {
|
||||
|
@ -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())) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user