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

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

XMLWordPrintable

    • MOODLE_39_STABLE

      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.

            Unassigned Unassigned
            abias Alexander Bias
            Votes:
            2 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.