Skip to content

section-config-set only considering first section #557

@cgrevisse

Description

@cgrevisse

Hi @tmuras,

Thank you for this great tool!

I noticed a strange behavior with section-config-set. When executing the example from the website to hide all sections in a course, e.g.,

moosh section-config-set course 45 visible 0

only the first section (General) seems to be hidden.

My workaround has been to change the following line:

into

if (isset($sectionno) && $sectionno != '') {

I'm on v1.45, but I've noticed this behavior since v1.19.

If that makes sense to you, could you please fix this?

Best,

Christian

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions