mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 16:36:37 +02:00
- When guest or students search entries, now they are correctly displayed.
This commit is contained in:
parent
8202a36a21
commit
6a22879b41
1 changed files with 1 additions and 1 deletions
|
@ -233,7 +233,7 @@ function glossary_search_entries($searchterms, $glossary, $includedefinition) {
|
|||
|
||||
if (!isteacher($glossary->course)) {
|
||||
$glossarymodule = get_record("modules", "name", "glossary");
|
||||
$onlyvisible = " AND f.id = cm.instance AND cm.visible = 1 AND cm.module = $glossarymodule->id";
|
||||
$onlyvisible = " AND g.id = cm.instance AND cm.visible = 1 AND cm.module = $glossarymodule->id";
|
||||
$onlyvisibletable = ", {$CFG->prefix}course_modules cm";
|
||||
} else {
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue