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

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

    XMLWordPrintable

Details

    • 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

              Unassigned Unassigned
              abias Alexander Bias
              Andrew Lyons, Huong Nguyen, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze, Stevani Andolo, Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Ilya Tregubov, Laurent David, Raquel Ortega, Sara Arjona (@sarjona)
              Votes:
              2 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated: