From 76dee48562e55f8a0e8370b50efd0aa634b48dcb Mon Sep 17 00:00:00 2001 From: Sam Hemelryk Date: Mon, 24 Dec 2012 13:05:56 +1300 Subject: [PATCH] MDL-37290 course: fixed up navbar when editing categories --- course/category.php | 1 + 1 file changed, 1 insertion(+) diff --git a/course/category.php b/course/category.php index cb1d0c79fa5..1da4ce5d50f 100644 --- a/course/category.php +++ b/course/category.php @@ -191,6 +191,7 @@ if ($editingon && can_edit_in_category()) { // Integrate into the admin tree only if the user can edit categories at the top level, // otherwise the admin block does not appear to this user, and you get an error. require_once($CFG->libdir . '/adminlib.php'); + navigation_node::override_active_url(new moodle_url('/course/category.php', array('id' => $id))); admin_externalpage_setup('coursemgmt', '', $urlparams, $CFG->wwwroot . '/course/category.php'); $PAGE->set_context($context); // Ensure that we are actually showing blocks etc for the cat context -- 2.43.0