From 963402c2ba01912cf0bcb54c5e917e15a0c18ab1 Mon Sep 17 00:00:00 2001 From: Ankit Agarwal Date: Mon, 26 May 2014 10:39:57 +0800 Subject: [PATCH] MDL-33763 notes: Fix issue with incorrect node highlighting in the nav tree --- lib/navigationlib.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/navigationlib.php b/lib/navigationlib.php index 06081c06d2e..4a96fa4c90f 100644 --- a/lib/navigationlib.php +++ b/lib/navigationlib.php @@ -2228,7 +2228,7 @@ class global_navigation extends navigation_node { // Add a node to view the users notes if permitted if (!empty($CFG->enablenotes) && has_any_capability(array('moodle/notes:manage', 'moodle/notes:view'), $coursecontext)) { $url = new moodle_url('/notes/index.php',array('user'=>$user->id)); - if ($coursecontext->instanceid) { + if ($coursecontext->instanceid != SITEID) { $url->param('course', $coursecontext->instanceid); } $usernode->add(get_string('notes', 'notes'), $url);