MDL-43719 tags: Fix the sql statement in the tag management page.

MSSQL and Oracle require that all fields in teh select also be present
in the group by section.
This commit is contained in:
Adrian Greeve
2014-04-11 13:55:31 +08:00
parent c16911b50f
commit f2ae72dcf0
+1 -1
View File
@@ -231,7 +231,7 @@ $query = "
LEFT JOIN {user} u ON u.id = tg.userid
$where
GROUP BY tg.id, tg.name, tg.rawname, tg.tagtype, tg.flag, tg.timemodified,
u.id, u.firstname, u.lastname
u.id, $allusernames
$sort";
$totalcount = $DB->count_records_sql("