Permalink
Browse files

Wiki - fixed 'Strip versions' that didn't work in postgres because of…

… GROUP BY a select alias not being allowed. (Even tested in mysql this time...)
  • Loading branch information...
1 parent 4e423cb commit 1e4c8535efc7ef27aa96f703865c89ed183d8583 sam_marshall committed Oct 4, 2006
Showing with 1 addition and 1 deletion.
  1. +1 −1 mod/wiki/ewikimoodlelib.php
@@ -167,7 +167,7 @@ function ewiki_database_moodle($action, &$args, $sw1, $sw2) {
$sql= "SELECT pagename AS id, count(*) as versioncount".
" FROM ". $CFG->prefix.EWIKI_DB_TABLE_NAME .
" WHERE wiki = ".$wiki_entry->id.
- " GROUP BY id";
+ " GROUP BY pagename";
#print "$sql";
$result=get_records_sql($sql);

0 comments on commit 1e4c853

Please sign in to comment.