Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-16892

Multilang filter is not applied to role names in some places

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.9.3
    • Fix Version/s: 1.9.4, 2.0
    • 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

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                nicolasconnault Nicolas Connault
                Reporter:
                mina Nicolas Martignoni
                Tester:
                Nicolas Martignoni
                Participants:
                Component watchers:
                Jake Dallimore, Jun Pataleta, Ryan Wyllie, Amaia Anabitarte, Bas Brands, Carlos Escobedo, Sara Arjona (@sarjona), Víctor Déniz Falcón
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  28/Jan/09