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

Global search results don't honour multilang filter

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 3.6.8, 3.8.1
    • Fix Version/s: None
    • Component/s: Filters, Global search, Language
    • Labels:
    • Affected Branches:
      MOODLE_36_STABLE, MOODLE_38_STABLE

      Description

      Yeah, it seems that the titles of results of global search display all languages wrapped with <span lang="XX" class="multilang">your_content_here</span>.

      I've been able to reproduce this on Mount Orange:

      1. Create a page with a multilanguage title, like so:

        <span lang="EN" class="multilang">TITLE ENGLISH</span><span lang="RU" class="multilang">TITLE RUSSIAN</span>

      1. Wait a while for the page to get indexed by global search
      2. Set language to Russian from the language menu
      3. Perform a global search for 'TITLE'

      Result: TITLE ENGLISHTITLE RUSSIAN is returned as the title of of the page, in both languages but strips the <span>

      Expected: TITLE RUSSIAN, i.e only print the Russian <span>

      Hopefully I'm not losing my mind and someone else can confirm this behavior.

        Attachments

          Activity

            People

            Assignee:
            Unassigned
            Reporter:
            hamboneZA James Hamilton
            Participants:
            Component watchers:
            Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Sara Arjona (@sarjona), Víctor Déniz Falcón, Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Sara Arjona (@sarjona), Víctor Déniz Falcón, cameron1729, David Mudrák (@mudrd8mz), Helen Foster
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated: