MDL-67751 course: include inline folders in list of resources.

This commit is contained in:
Paul Holden
2020-04-15 13:59:36 +01:00
parent 08a62243c5
commit 94de68f9b8
4 changed files with 11 additions and 10 deletions
+2 -1
View File
@@ -203,7 +203,8 @@ class report_log_renderable implements renderable {
$section = 0;
$thissection = array();
foreach ($modinfo->cms as $cm) {
if (!$cm->uservisible || !$cm->has_view()) {
// Exclude activities that aren't visible or have no view link (e.g. label). Account for folders displayed inline.
if (!$cm->uservisible || (!$cm->has_view() && strcmp($cm->modname, 'folder') !== 0)) {
continue;
}
if ($cm->sectionnum > 0 and $section <> $cm->sectionnum) {