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

Use filter for assignment name in grader view

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.1.4, 3.2, 3.3
    • Fix Version/s: 3.1.5, 3.2.2
    • Component/s: Assignment
    • Labels:
    • Testing Instructions:
      Hide
      1. Enable the multi-language content filter to apply to "Content and headings" (Site administration  ► Plugins  ► Filters  ► Manage filters).
      2. Create a assignment activity and set the name with multi language tags.
        Example: <span lang="de" class="multilang">Aufgabe</span><span lang="en" class="multilang">Assignment</span> "
      3. Go to the assignment -> grade
      4. The assignment name in the upper left corner of the grader view should be displayed as the corresponding lang-matching name
      Show
      Enable the multi-language content filter to apply to "Content and headings" (Site administration  ► Plugins  ► Filters  ► Manage filters). Create a assignment activity and set the name with multi language tags. Example: <span lang="de" class="multilang">Aufgabe</span><span lang="en" class="multilang">Assignment</span> " Go to the assignment -> grade The assignment name in the upper left corner of the grader view should be displayed as the corresponding lang-matching name
    • Affected Branches:
      MOODLE_31_STABLE, MOODLE_32_STABLE, MOODLE_33_STABLE
    • Fixed Branches:
      MOODLE_31_STABLE, MOODLE_32_STABLE
    • Pull from Repository:
    • Pull Master Branch:
      MDL-57592-master

      Description

      Hi,

      When using the multi language tags with the available multi language filter the name of the assignment gets proper converted by the multilang filter in the course view.
      However, if we go to the grader view of the assignment then the raw text of the name property with all the multi language tags is displayed on the upper left corner.
      It seems there is a format_string() call missing when processing the name property in export_for_template().

      regards
      Mario

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Fix Release Date:
                13/Mar/17