-
Bug
-
Resolution: Unresolved
-
Minor
-
None
-
4.1.19, 4.5.5, 5.0.1, 5.1
The error appears when attempting to use the mod/glossary/showentry.php page to search for concepts. This functionality is enabled in the code when the "concept" and "courseid" parameters are passed. When searching by concept, the $glossary variable is never created, and this causes an error if debugging is enabled.
To reproduce:
- Enable "Display debug messages" (debugdisplay).
- Set "Debug messages" (debug) to "DEVELOPER: extra Moodle debug messages for developers."
- Create a course and identify its auto-incrementing ID (you can use an existing one).
- In your browser, open the link: https://MOODLE_URL/mod/glossary/showentry.php?concept=someconcepto&courseid=# (replace # with the course ID from step 3).
- The error "Undefined variable $glossary" appears.
Note: A glossary or the concept does not need to exist. If the concept is not found, you should see a blank page.