MDL-67751 course: include inline folders in list of resources.
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user