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

Filters not being applied in Global Search results

    • MOODLE_404_STABLE, MOODLE_405_STABLE, MOODLE_500_STABLE
    • MDL-85108-M405
    • MDL-85108-main
    • Hide
      1. Install Moodle in English.
      2. Log in as a Site Administrator.
      3. Enable Global Search.
      4. Install the French language pack.
      5. Install AND enable the Multi-Language Content (v2) plugin from the Moodle plugins repository. Be sure to enable this plugin for content and headings.
      6. Create a course with a multi-language short and full name: (See Code 1 below).
      7. Add a multi-language course summary: (See Code 2 below).
      8. Wait a while for the course to get indexed by Global Search. This might take a minute - please be patient.
      9. Set the language to English from the language menu if you are not already in English.
      10. Perform a global search for 'TITLE'.
        Result - Course title: TITLE ENGLISH
        Result - Course summary: Course Description
      11. Set the language to French from the language menu.
      12. Perform a global search for 'TITLE'.
        Result - Course title: TITLE FRENCH
        Result - Course summary: Description du cours

      I had trouble adding the sample snippets inline without messing up the format so here are the snippets:

      Code 1: 

      {mlang en}TITLE ENGLISH{mlang}{mlang fr}TITLE FRENCH{mlang}

      Code 2:

      {mlang en}Course Description{mlang}{mlang fr}Description du cours{mlang}

       

      Show
      Install Moodle in English. Log in as a Site Administrator. Enable Global Search. Install the French language pack. Install AND enable the Multi-Language Content (v2) plugin from the Moodle plugins repository. Be sure to enable this plugin for content and headings. Create a course with a multi-language short and full name: (See Code 1 below). Add a multi-language course summary: (See Code 2 below). Wait a while for the course to get indexed by Global Search. This might take a minute - please be patient. Set the language to English from the language menu if you are not already in English. Perform a global search for 'TITLE'. Result - Course title: TITLE ENGLISH Result - Course summary: Course Description Set the language to French from the language menu. Perform a global search for 'TITLE'. Result - Course title: TITLE FRENCH Result - Course summary: Description du cours I had trouble adding the sample snippets inline without messing up the format so here are the snippets: Code 1:   {mlang en}TITLE ENGLISH{mlang}{mlang fr}TITLE FRENCH{mlang} Code 2: {mlang en}Course Description{mlang}{mlang fr}Description du cours{mlang}  
    • Hide

      Fails against automated checks.

      Checked MDL-85108 using repository: https://github.com/michael-milette/moodle.git

      Should these errors be fixed?

      Built on: Fri May 2 13:37:29 UTC 2025

      Show
      Fails against automated checks. Checked MDL-85108 using repository: https://github.com/michael-milette/moodle.git MOODLE_405_STABLE (5 errors / 1 warnings) [branch: MDL-85108-M405 | CI Job ] overview (0/1) , phplint (0/0) , phpcs (5/0) , js (0/0) , css (0/0) , phpdoc (0/0) , commit (0/0) , savepoint (0/0) , thirdparty (0/0) , externalbackup (0/0) , grunt (0/0) , shifter (0/0) , mustache (0/0) , gherkin (0/0) , Warn: The MDL-85108 -M405 branch at https://github.com/michael-milette/moodle.git has not been rebased recently (>20 days ago). main (5 errors / 1 warnings) [branch: MDL-85108-main | CI Job ] overview (0/1) , phplint (0/0) , phpcs (5/0) , js (0/0) , css (0/0) , phpdoc (0/0) , commit (0/0) , savepoint (0/0) , thirdparty (0/0) , externalbackup (0/0) , grunt (0/0) , shifter (0/0) , mustache (0/0) , gherkin (0/0) , Warn: The MDL-85108 -main branch at https://github.com/michael-milette/moodle.git has not been rebased recently (>20 days ago). Should these errors be fixed? Built on: Fri May 2 13:37:29 UTC 2025

      If text contains any sort of filters - when this text is located using the standard search function - the results shown to the user, does not render the text according to whatever filter tags are applied (it just shows the raw text including the filter tags).

      Could a fix be applied so that the search mechanism picks up and acts upon any added filters.

            michael-milette Michael Milette
            davefoord Dave Foord
            Paul Holden Paul Holden
            Votes:
            1 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:

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