-
Bug
-
Resolution: Fixed
-
Minor
-
3.0.5, 3.1, 3.2
-
MOODLE_30_STABLE, MOODLE_31_STABLE, MOODLE_32_STABLE
-
MOODLE_30_STABLE, MOODLE_31_STABLE
-
MDL-55166-master-blocksettings -
According to line 99 of lib/classes/plugininfo/block.php, settings.php pages are allowed to set $settings = null;. However, if this is done, a debugging message appears from from admin/blocks.php (from line 158.
That debugging message was added because of: https://tracker.moodle.org/browse/MDL-47979
Please enable re-enable $settings = null; in a block's settings.php.
—
The reason for needing to set $settings = null; to allow a (block) plugin to contribute non-default settings pages (ie, by creating new admin_settingpage instances and adding them elsewhere in the settings tree), without automatically adding a settings tree link to its default settings page.
- is a regression caused by
-
MDL-47979 blocks with has_config(true) and no settings.php displays link to invalid page
-
- Closed
-