-
Bug
-
Resolution: Fixed
-
Minor
-
3.5.5, 3.6.3, 3.7
-
MOODLE_35_STABLE, MOODLE_36_STABLE, MOODLE_37_STABLE
-
MOODLE_35_STABLE, MOODLE_36_STABLE
-
- Run vendor/bin/phpunit core_editor_privacy_provider_testcase
- Confirm testcase passes
Somehow we have user preference values containing an empty string for 'htmleditor':
SELECT * FROM `mdl_user_preferences` WHERE name = 'htmleditor' AND value = '' |
id | userid | name | value |
---|---|---|---|
150 | 2 | htmleditor | |
162 | 4 | htmleditor | |
166 | 409 | htmleditor | |
219 | 2486 | htmleditor |
Running a privacy export produces the following debugging:
Processing core_editor (457/501) (Wednesday, 27 March 2019, 11:37 AM)
|
++ Invalid get_string() identifier: 'pluginname' or component 'editor_'. Perhaps you are missing $string['pluginname'] = ''; in /lang/en/editor_.php? ++
|
* line 349 of /lib/classes/string_manager_standard.php: call to debugging()
|
* line 7153 of /lib/moodlelib.php: call to core_string_manager_standard->get_string()
|
* line 68 of /lib/editor/classes/privacy/provider.php: call to get_string()
|
* line 7828 of /lib/moodlelib.php: call to core_editor\privacy\provider::export_user_preferences()
|
* line 578 of /privacy/classes/manager.php: call to component_class_callback()
|
* line 611 of /privacy/classes/manager.php: call to core_privacy\manager::component_class_callback()
|
* line 361 of /privacy/classes/manager.php: call to core_privacy\manager->handled_component_class_callback()
|
* line 79 of /privacy_test_export.php: call to core_privacy\manager->export_user_data()
|
Inspecting the exported data:
var data_file_1104 = {
|
"htmleditor": {
|
"value": "",
|
"description": "Your preferred editor to use for writing HTML text is [[pluginname]]"
|
}
|
}
|
Affects all versions from 3.5 onwards
Discovered when using the Test of exporting user data utility
- has been marked as being related by
-
MDL-66230 Deleting a user tour causes error in privacy data export
- Closed