Now entries are showed correctly in categories view if they belong

to multiple categories.

Bug 1903
(http://moodle.org/bugs/bug.php?op=show&bugid=1903)
This commit is contained in:
stronk7
2004-09-06 07:43:07 +00:00
parent c1d0f7d584
commit cda01a6052
+1 -1
View File
@@ -43,7 +43,7 @@
case GLOSSARY_CATEGORY_VIEW:
if ($hook == GLOSSARY_SHOW_ALL_CATEGORIES ) {
$sqlselect = "SELECT ge.*, gec.entryid, gc.name $as pivot";
$sqlselect = "SELECT gec.id, ge.*, gec.entryid, gc.name $as pivot";
$sqlfrom = "FROM {$CFG->prefix}glossary_entries ge,
{$CFG->prefix}glossary_entries_categories gec,
{$CFG->prefix}glossary_categories gc";