Ok, can replicate, in 'print_multiple_section_page' for the file 'format_collapsibletopics_renderer.php' then given the scenario with no content in section 0 and the code being:
if ($section == 0) {
echo '<div class="collapsible-actions" >
<a href="#" class="expandall" role="button">' . get_string('expandall') . '
</a>
</div>';
// 0-section is displayed a little different then the others.
if ($thissection->summary or !empty($modinfo->sections[0]) or $PAGE->user_is_editing()) {
$this->page->requires->strings_for_js(array('collapseall', 'expandall'), 'moodle');
$modules = $this->courserenderer->course_section_cm_list($course, $thissection, 0);
echo $this->section_header($thissection, $course, false, 0);
echo $modules;
echo $this->section_footer();
}
continue;
}
then:
$this->page->requires->strings_for_js(array('collapseall', 'expandall'), 'moodle');
is in the wrong place. This is a bug with the theme and not the course format, which seems fine. Up to Chris to fix.
I'm also getting:
Notice: Trying to get property 'cm' of non-object in F:\moodledev\moodle38\theme\fordson\lib\fordson_lib.php on line 133
When viewing the page, which I think is another bug.
G