]> git.mjollnir.org Git - moodle.git/commitdiff
In 'categories view' (all and only one), now attachements, edit, comment
authorstronk7 <stronk7>
Mon, 12 Jul 2004 16:35:50 +0000 (16:35 +0000)
committerstronk7 <stronk7>
Mon, 12 Jul 2004 16:35:50 +0000 (16:35 +0000)
and delete are working properly. Thanks to frank@nomios.de!!
See bug 1632
(http://moodle.org/bugs/bug.php?op=show&bugid=1632)

Merged from MOODLE_13_STABLE

mod/glossary/sql.php

index 53eb4e9310bc30e082c2de90650644f088f5ceef..a7073d53a801dc43df7da1b20c774195385050fd 100644 (file)
@@ -43,7 +43,7 @@
     case GLOSSARY_CATEGORY_VIEW:
         if ($hook == GLOSSARY_SHOW_ALL_CATEGORIES  ) { 
 
-            $sqlselect = "SELECT ge.*, gec.id, gc.name $as pivot";
+            $sqlselect = "SELECT 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";
@@ -71,7 +71,7 @@
         } else {
 
             $printpivot = 0;
-            $sqlselect  = "SELECT ge.*, ce.id, c.name $as pivot";
+            $sqlselect  = "SELECT ge.*, ce.entryid, c.name $as pivot";
             $sqlfrom    = "FROM {$CFG->prefix}glossary_entries ge, {$CFG->prefix}glossary_entries_categories ce, {$CFG->prefix}glossary_categories c";
             $sqlwhere   = "WHERE ge.id = ce.entryid AND ce.categoryid = $hook AND
                                  ce.categoryid = c.id AND ge.approved != 0 AND