Skip to content

Deprecation of maxsection setting: MDL-84291 #138

@PhMemmel

Description

@PhMemmel

The deprecation of the maxsections setting affects block_massaction. For example when duplicating into another course there is

Deprecation: core_courseformat\base::get_max_sections has been deprecated since 5.1. The maxsection setting is removed.. See MDL-84291 for more information.

    line 255 of /lib/classes/deprecation.php: call to debugging()
    line 136 of /lib/classes/deprecation.php: call to core\deprecation::emit_deprecation_notice()
    line 463 of /course/format/classes/base.php: call to core\deprecation::emit_deprecation_if_present()
    line 138 of /blocks/massaction/classes/form/section_select_form.php: call to core_courseformat\base->get_max_sections()
    line 217 of /lib/formslib.php: call to block_massaction\form\section_select_form->definition()
    line 174 of /blocks/massaction/action.php: call to moodleform->__construct()

There are for sure more places we have to fix that. The deprecation starts with Moodle 5.1. See https://moodle.atlassian.net/browse/MDL-84291

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