MDL-74602 mod_assign: fix js error with assign grader on classic

This commit is contained in:
Jake Dallimore
2022-05-06 16:48:29 +08:00
parent 6ec89f6374
commit 9ec2c12f3d
+2 -2
View File
@@ -4756,10 +4756,10 @@ class assign {
// Need submit permission to submit an assignment.
$this->require_view_grades();
$PAGE->activityheader->disable();
$PAGE->set_pagelayout('embedded');
$PAGE->activityheader->disable();
$courseshortname = $this->get_context()->get_course_context()->get_context_name(false, true);
$args = [
'contextname' => $this->get_context()->get_context_name(false, true),