Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 1.9.3
-
Component/s: Filters, Roles / Access
-
Labels:None
-
Affected Branches:MOODLE_19_STABLE
-
Fixed Branches:MOODLE_19_STABLE, MOODLE_20_STABLE
Description
Having the admin role name defined with multilang filter, the display of the role name is not correctly filtered in following places.
1) http://youmoodlehost.com/admin/roles/manage.php?roleid=1&action=view
where one sees the whole <span...> syntax
Fix suggested: change <?php print_string('name') ?> in file /admin/roles/manage.html (line 26) to use format_string()
2) http://youmoodlehost.com/admin/roles/assign.php?contextid=1
where one sees for each role name all the translated names (all languages) concatenated
Fix suggested: insert call to format_string() around $rolename at line 457 of file /admin/roles/assign.php
This faulty behaviour appears here too:
3) http://youmoodlehost.com/admin/roles/assign.php?contextid=1&roleid=1
The popup menu shows all the translated names (all languages) concatenated for each role
I can't suggest any fix (maybe a bug in function role_fix_names() ?)
PS Anywhere else the filtering occurs normally, i.e. the names of the roles appear (only) in the language chosen by the user.