Skip to content

Bug: View function of subsections in edit mode throws errors #49

Description

@stdoma

I have activated the subsections option in my dev system.
I can create, delete, move and fill them as normal.
In edit mode, the “more” menu has a “view” item. When I call up this function, I get an error:

_Exception - core_courseformat\output\local\content\sectionnavigation::_construct(): Argument #2 ($sectionno) must be of type int, null given, called in [dirroot]/course/format/multitopic/classes/output/courseformat/content/sectionnavigation.php on line 58

Without the relevant editing rights, the function cannot be called as a participant, so the error is not quite so critical.
I'm not sure what the function is needed for, or could the item be removed from the menu?

System 4.5+ (Build: 20241115)
Plugin v4.5.0 (2024102101)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions