Skip to content

Commit

Permalink
In 'categories view' (all and only one), now attachements, edit, comment
Browse files Browse the repository at this point in the history
and delete are working properly. Thanks to frank@nomios.de!!
See bug 1632
(http://moodle.org/bugs/bug.php?op=show&bugid=1632)
  • Loading branch information
stronk7 committed Jul 12, 2004
1 parent ee84cd6 commit f973558
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mod/glossary/sql.php
Expand Up @@ -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";
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit f973558

Please sign in to comment.