MDL-69122 report_competency: fix clearfix
authorBas Brands <bas@moodle.com>
Wed, 24 Jun 2020 07:06:21 +0000 (09:06 +0200)
committerBas Brands <bas@moodle.com>
Wed, 24 Jun 2020 07:06:21 +0000 (09:06 +0200)
- a misplaced clearfix caused part of the recontrols to be
inaccessible

report/competency/index.php

index 6c1fc25..ccf0eb8 100644 (file)
@@ -76,7 +76,7 @@ $output = $PAGE->get_renderer('report_competency');
 echo $output->header();
 $baseurl = new moodle_url('/report/competency/index.php');
 $nav = new \report_competency\output\user_course_navigation($currentuser, $course->id, $baseurl, $currentmodule);
-echo $output->render($nav);
+$top = $output->render($nav);
 if ($currentuser > 0) {
     $user = core_user::get_user($currentuser);
     $usercontext = context_user::instance($currentuser);
@@ -88,9 +88,9 @@ if ($currentuser > 0) {
     if ($currentmodule > 0) {
         $title = get_string('filtermodule', 'report_competency', format_string($cm->name));
     }
-    echo $output->context_header($userheading, 3);
+    $top .= $output->context_header($userheading, 3);
 }
-echo $output->container('', 'clearfix');
+echo $output->container($top, 'clearfix');
 echo $output->heading($title, 3);
 
 if ($currentuser > 0) {