-
Improvement
-
Resolution: Fixed
-
Major
-
4.2.1
-
MOODLE_402_STABLE
-
MOODLE_403_STABLE
-
The code in admin_apply_default_settings() could be improved.
List of problems:
- PHPDocs do not match parameters
- The last two parameters have confusing docs and are actually unnecessary
- Repeated executions do not need to use $unconditional parameter
- There is no prevention of infinite repeating it seems
- Writing errors are ignored
- setting names are not unique - it has to use $setting->plugin, not just $setting->name
- setting names printed during upgrade are not using standard format like admin UI "pluginname/settingname"
- function parameters and return do not have PHP type specified
- has been marked as being related by
-
MDL-79761 Brand new web installation has defaulthomepage set to 'My courses' instead of 'Dashboard'
- Closed
-
MDL-80596 Unit test failure with adminlib_test
- Closed
- has to be done after
-
MDL-78541 admin_apply_default_settings() fails if heading has the same name as plugin setting
- Closed