From 9ec2c12f3d4e1ea91d8364ea39d2375ae34a86b3 Mon Sep 17 00:00:00 2001 From: Jake Dallimore Date: Fri, 6 May 2022 16:46:58 +0800 Subject: [PATCH] MDL-74602 mod_assign: fix js error with assign grader on classic --- mod/assign/locallib.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mod/assign/locallib.php b/mod/assign/locallib.php index b88cc9e86f9..47e0a9a0232 100644 --- a/mod/assign/locallib.php +++ b/mod/assign/locallib.php @@ -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),