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

Search icon missing in navbar when Global search is disabled

    • MOODLE_310_STABLE, MOODLE_311_STABLE, MOODLE_39_STABLE, MOODLE_401_STABLE, MOODLE_402_STABLE, MOODLE_403_STABLE, MOODLE_404_STABLE, MOODLE_405_STABLE
    • MDL-72842-M401
    • MDL-72842-M403
    • MDL-72842-M404
    • MDL-72842-main
    • Hide

      Use the search form available on some pages.

      Show
      Use the search form available on some pages.
    • Hide

      Before you begin, ensure that you are using the Boost theme and that you have a course called Moodle Search Test. The course need not have any content for the purpose of these tests.

      Test 1 - Course Search

      1. Log into Moodle as a site administrator.
      2. Navigate to Site Administration > Advanced Features
      3. Ensure that the Enable Global Search option is unchecked.
      4. Scroll to the bottom of the page and apply using the Save Changes button.
      5. VERIFY: Notice that the Search icon (magnifying glass) is visible.
      6. Click the Search icon to reveal the search form.
      7. VERIFY: The placeholder says Search courses. This indicates that global search is not enabled.
      8. Enter the word "Moodle" in the search form and press ENTER.
      9. VERIFY: You should now see the Moodle Search Test course in the list (there may be others if you have other courses on your site). Notice that the page heading does NOT say "Global Search". This indicates that it used the Course Search engine.

      Test 2 - Global Search (to ensure that it still works)

      1. Navigate to Site Administration > Advanced Features
      2. Ensure that the Enable Global Search option is checked.
      3. Scroll to the bottom of the page and apply using the Save Changes button.
      4. VERIFY: Notice that the Search icon (magnifying glass) is still visible.
      5. Click the Search icon to reveal the search form.
      6. Note the placeholder says "Global search". This indicates that global search is enabled.
      7. Enter the word "Moodle" in the search form and press ENTER.
      8. VERIFY: You should now see the Moodle Search Test course in the list (there may be others if you have other courses on your site). Notice that the page title heading does say Global Search. This indicates that it is now using the Global Search engine.

      Now repeat both tests using the Classic theme. It should work the same way as the modified code is theme-independent.

      Note: If you see a message indicating that the Global Search did not work for any reason (e.g. No results), you may need to wait a little to allow time for the Moodle Task Scheduler time to index the site as the default is every 10 minutes when global search is enabled. For more information on configuring Global Search, navigate to Site Administration > Plugins > Search > Manage Global Search and view the documentation at https://docs.moodle.org/en/Global_search#Setting_up_Simple_search  .

      Let me know if you have any questions or concerns.

      Best regards,

      Michael Milette

      Show
      Before you begin, ensure that you are using the Boost theme and that you have a course called Moodle Search Test . The course need not have any content for the purpose of these tests. Test 1 - Course Search Log into Moodle as a site administrator. Navigate to Site Administration > Advanced Features Ensure that the Enable Global Search  option is unchecked . Scroll to the bottom of the page and apply using the Save Changes button. VERIFY : Notice that the Search icon (magnifying glass) is visible. Click the Search icon to reveal the search form. VERIFY : The placeholder says Search courses . This indicates that global search is not enabled. Enter the word "Moodle" in the search form and press ENTER. VERIFY : You should now see the Moodle Search Test course in the list (there may be others if you have other courses on your site). Notice that the page heading does NOT say "Global Search". This indicates that it used the Course Search engine. Test 2 - Global Search (to ensure that it still works) Navigate to Site Administration > Advanced Features Ensure that the Enable Global Search  option is checked . Scroll to the bottom of the page and apply using the Save Changes button. VERIFY : Notice that the Search icon (magnifying glass) is still visible. Click the Search icon to reveal the search form. Note the placeholder says "Global search". This indicates that global search is enabled. Enter the word "Moodle" in the search form and press ENTER. VERIFY : You should now see the Moodle Search Test course in the list (there may be others if you have other courses on your site). Notice that the page title heading  does say Global Search . This indicates that it is now using the Global Search engine. Now repeat both tests using the Classic theme. It should work the same way as the modified code is theme-independent. Note: If you see a message indicating that the Global Search did not work for any reason (e.g. No results), you may need to wait a little to allow time for the Moodle Task Scheduler time to index the site as the default is every 10 minutes when global search is enabled. For more information on configuring Global Search, navigate to Site Administration > Plugins > Search > Manage Global Search and view the documentation at https://docs.moodle.org/en/Global_search#Setting_up_Simple_search   . Let me know if you have any questions or concerns. Best regards, Michael Milette

      With Global Search enabled:

      With Global Search disabled:

      There is no reason for this as course search still works just fine in other places when Global Search is disabled. For consistency, the search icon and form should be visible whether or not Global Search is enabled.

            michael-milette Michael Milette
            michael-milette Michael Milette
            Neill Magill Neill Magill
            Votes:
            0 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.