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

Global search results don't honour multilang filter

    XMLWordPrintable

Details

    • Bug
    • Status: Development in progress
    • Minor
    • Resolution: Unresolved
    • 3.6.8, 3.8.1, 3.9.3, 3.10
    • None
    • Filters, Global search, Language

    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 course 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 course 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

        Issue Links

          Activity

            People

              Unassigned Unassigned
              hamboneZA James Hamilton
              Luca Bösch Luca Bösch
              Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Ilya Tregubov, Sara Arjona (@sarjona), Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Ilya Tregubov, Sara Arjona (@sarjona), David Mudrák (@mudrd8mz), Helen Foster, Víctor Déniz Falcón
              Votes:
              5 Vote for this issue
              Watchers:
              12 Start watching this issue

              Dates

                Created:
                Updated:

                Time Tracking

                  Estimated:
                  Original Estimate - 0 minutes
                  0m
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 1 minute
                  1m