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

Courses in hidden category appear in course search results

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Duplicate
    • Affects Version/s: 3.1.18, 3.4.9, 3.5.8, 3.6.6, 3.7.2, 3.8.1
    • Fix Version/s: None
    • Component/s: Global search
    • Labels:
      None
    • Affected Branches:
      MOODLE_31_STABLE, MOODLE_34_STABLE, MOODLE_35_STABLE, MOODLE_36_STABLE, MOODLE_37_STABLE, MOODLE_38_STABLE

      Description

      Courses, located in a hidden category, should not appear in course search results as this defeats the who idea behind putting them in a hidden category in the first place.

      Steps to reproduce the issue

      Note that the Moodle Global Search setting is not checked (hence, disabled).

      1. Login as a Moodle Administrator.
      2. Create a hidden category.
      3. Create a visible course (set to show) in the hidden category.
      4. Log out.
      5. Log in as a student.
      6. Search for the name of the course you just created using the Moodle search engine.

      What happened

      The course will appear in the search results even though the category it is in is set to hidden.

      What was expected

      Courses in hidden categories should not appear in the search results.

        Attachments

          Activity

            People

            Assignee:
            Unassigned
            Reporter:
            michael-milette Michael Milette
            Participants:
            Component watchers:
            Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Sara Arjona (@sarjona), Víctor Déniz Falcón
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: