From ceee6e9bd831761789faa91096bf7237cc981f02 Mon Sep 17 00:00:00 2001 From: Serge Gauthier Date: Wed, 28 Sep 2016 13:15:49 -0400 Subject: [PATCH] MDL-55964 report_competency: Missing blocks in Competency breakdown Fix also the breadcrumb. --- report/competency/index.php | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/report/competency/index.php b/report/competency/index.php index 656619a179a..134518a76c4 100644 --- a/report/competency/index.php +++ b/report/competency/index.php @@ -51,13 +51,17 @@ if (empty($currentuser)) { } } -$urlparams = array('id' => $id, 'user' => $currentuser); - +$urlparams = array('id' => $id); +$navurl = new moodle_url('/report/competency/index.php', $urlparams); +$urlparams['user'] = $currentuser; $url = new moodle_url('/report/competency/index.php', $urlparams); + $title = get_string('pluginname', 'report_competency'); +$coursename = format_string($course->fullname, true, array('context' => $context)); + +$PAGE->navigation->override_active_url($navurl); $PAGE->set_url($url); $PAGE->set_title($title); -$coursename = format_text($course->fullname, false, array('context' => $context)); $PAGE->set_heading($coursename); $PAGE->set_pagelayout('incourse');