-
Bug
-
Resolution: Duplicate
-
Minor
-
None
-
3.9.3
-
None
1 On the search settings page (Plugins > Search > Manage global search), turn on the 'Include all visible courses' option.
2 Log in as a non-admin user.
3 Go to the search screen (type something in the search box and press return).
4 Open the 'Filters' fieldset, and under 'Courses', type and select the name of a course that the current user is NOT enrolled in.
5 Do a search
This error occurs:
Coding error detected, it must be fixed by a programmer: moodle_database::get_in_or_equal() does not accept empty arrays
More information about this error
Debug info:
Error code: codingerror
Stack trace:
line 770 of \lib\dml\moodle_database.php: coding_exception thrown
line 836 of \search\classes\manager.php: call to moodle_database->get_in_or_equal()
line 1041 of \search\classes\manager.php: call to core_search\manager->get_areas_user_accesses()
line 940 of \search\classes\manager.php: call to core_search\manager->search()
line 176 of \search\index.php: call to core_search\manager->paged_search()
- duplicates
-
MDL-62707 codingerror in Global Search when "search within enrolled courses only" is set
- Closed