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

Licence full name removes multilanguage syntax instead of respecting and processing it

    XMLWordPrintable

    Details

    • Affected Branches:
      MOODLE_39_STABLE

      Description

      Prerequisites:

      • Login as admin
      • Go to Site administration -> Plugins -> Filters -> Manage filters
      • Enable the "Multi-Language content" filter for content and headings
      • Go to Site administration -> Language -> Language packs
      • Install the german language pack
      • Set your current language to english

      Steps to reproduce:

      • Go to Site administration -> Licence -> Licence manager
      • Click "Create licence" button
      • In the following form
        • Set an arbitrary licence short name
        • Set "Licence full name" to

          <span lang="en" class="multilang">Public Domain</span><span lang="de" class="multilang">Gemeinfrei</span>
          

        • Set an arbitrary licence source
        • Set an arbitrary licence version
      • Click "Save changes" button
      • Open the created license again for editing

      Expected result:

      • The "License full name field" still contains the multilanguage notation
      • On Site administration -> Licence -> Licence manager and anywhere else where the license full name is shown, the multilanguage syntax is processed and the name is picked according to the viewer's current language

      Actual result:

      • The "License full name field" does not contain the multilanguage notation anymore, it just says "Public Domain"
      • On Site administration -> Licence -> Licence manager and anywhere else where the license full name is shown, just "Public Domain" is shown. The multilanguage strings are lost.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              abias Alexander Bias
              Participants:
              Component watchers:
              Andrew Lyons, Dongsheng Cai, Huong Nguyen, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze, Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias, Sujith Haridasan, Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Ilya Tregubov, Sara Arjona (@sarjona)
              Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated: