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
Affected Branches:MOODLE_31_STABLE, MOODLE_34_STABLE, MOODLE_35_STABLE, MOODLE_36_STABLE, MOODLE_37_STABLE, MOODLE_38_STABLE
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.
Note that the Moodle Global Search setting is not checked (hence, disabled).
- Login as a Moodle Administrator.
- Create a hidden category.
- Create a visible course (set to show) in the hidden category.
- Log out.
- Log in as a student.
- Search for the name of the course you just created using the Moodle search engine.
The course will appear in the search results even though the category it is in is set to hidden.
Courses in hidden categories should not appear in the search results.