]> git.mjollnir.org Git - moodle.git/commitdiff
Now entries are showed correctly in categories view if they belong
authorstronk7 <stronk7>
Mon, 6 Sep 2004 07:54:52 +0000 (07:54 +0000)
committerstronk7 <stronk7>
Mon, 6 Sep 2004 07:54:52 +0000 (07:54 +0000)
to multiple categories.

Bug 1903
(http://moodle.org/bugs/bug.php?op=show&bugid=1903)

Merged from MOODLE_14_STABLE

mod/glossary/sql.php

index f7fa2af09328f405fc90414d143f7f819874a71b..822f6233a06e9aee3fae0c3e3b51cfccaada6cbe 100644 (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";