Permalink
Browse files

MDL-29821 Navigation tree: fix link to course notes page

  • Loading branch information...
1 parent f89a83b commit 41eae0d9f368a652d74bd75ce44ce604aa50115b @bostelm bostelm committed Oct 18, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/navigationlib.php
@@ -2247,7 +2247,7 @@ public function add_course_essentials($coursenode, stdClass $course) {
$participants->add(get_string('blogs','blog'), $blogsurls->out());
}
if (!empty($CFG->enablenotes) && (has_capability('moodle/notes:manage', $this->page->context) || has_capability('moodle/notes:view', $this->page->context))) {
- $participants->add(get_string('notes','notes'), new moodle_url('/notes/index.php', array('filtertype'=>'course', 'filterselect'=>$filterselect)));
+ $participants->add(get_string('notes','notes'), new moodle_url('/notes/index.php', array('filtertype'=>'course', 'filterselect'=>$course->id)));
}
} else if (count($this->extendforuser) > 0 || $this->page->course->id == $course->id) {
$participants = $coursenode->add(get_string('participants'), null, self::TYPE_CONTAINER, get_string('participants'), 'participants');

0 comments on commit 41eae0d

Please sign in to comment.