-
Bug
-
Resolution: Unresolved
-
Minor
-
None
-
5.0
-
MOODLE_500_STABLE
The WebServices affected are mod_data_get_entries and mod_data_get_entry. In both cases, when the fields of an entry are returned, the field contents aren't filtered so the Moodle app cannot display the content properly. These contents should be filtered if the parameter moodlewssettingfilter is set to true as it happens with other WebServices.
To reproduce the issue:
- Create a database.
- Create a new field of type Textarea.
- Add a new entry adding filtered content in the text. E.g. you can add some MathJax like $$ax^2 + bx + c = 0$$, or multilang content.
- Call the WebService mod_data_get_entries or mod_data_get_entry for that database. Inside the entry you will see that the field contents[0]->content returns the HTML unfiltered.
I think this information is returned using the content_exporter class.