-
Bug
-
Resolution: Fixed
-
Minor
-
3.8
-
MOODLE_38_STABLE
-
MOODLE_37_STABLE, MOODLE_38_STABLE
-
MDL-66877-master -
The following WebServices don't format activity names:
mod_assign_get_assignments
mod_data_get_databases_by_courses
mod_lesson_get_lessons_by_courses
How to reproduce:
- Enable multilang filter in the site and in a course.
- Create an assign, a database and a lesson. In the name of the activity put some multilang text, e.g.: <span lang="en" class="multilang">English</span><span lang="es" class="multilang">Español</span>
- Call the WS that gets the activity and look at its name. It will contain the spans with multilang, but it should return only the right language without the span.
On the other hand, in survey the opposite happens: the WebService formats the activity name, but Moodle web doesn't. If you create a survey with multilang tags in its name, it's correctly displayed in the course page and in breadcrumbs, but if you open it you will see both texts in the title.