From 6ef8f817f5d12e6d07cbef02368002c5f52016f3 Mon Sep 17 00:00:00 2001 From: Stefan Hanauska Date: Mon, 19 Feb 2024 12:09:49 +0100 Subject: [PATCH] MDL-80974 enrol: Set category context for enrol form --- enrol/index.php | 1 + 1 file changed, 1 insertion(+) diff --git a/enrol/index.php b/enrol/index.php index ae767d3ff7ebe..f48aa10db9b2f 100644 --- a/enrol/index.php +++ b/enrol/index.php @@ -53,6 +53,7 @@ } $PAGE->set_course($course); +$PAGE->set_context($context->get_parent_context()); $PAGE->set_pagelayout('incourse'); $PAGE->set_url('/enrol/index.php', array('id'=>$course->id)); $PAGE->set_secondary_navigation(false);