Permalink
Browse files

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

  • Loading branch information...
1 parent 8129b01 commit 32bbc3603961e9ac3041689cf3efcc8d2f04d148 @bostelm bostelm committed with Sam Hemelryk Oct 18, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/navigationlib.php
View
@@ -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 32bbc36

Please sign in to comment.