-
Bug
-
Resolution: Fixed
-
Minor
-
4.1.1
This is a regression caused by MDL-75234 but made worse by poor unit test writing.
The test_create_field test is testing that the newly created field was added to the addtemplate template, but it is not.
The template is empty, because the line that fills it was removed in MDL-75234.
The test does not fail because strpos('', 'anything') === false and (false >= 0) === true.
- Discovered while testing
-
MDL-76362 Avoid passing null to functions strictly requiring strings (PHP 8.1)
- Closed
- duplicates
-
MDL-76080 mod_data: Test for create_field does not test anything
- Closed
- is a regression caused by
-
MDL-75234 Use default templates in mod_data if the templates are not created.
- Closed