From f2ae72dcf0e428496f2bb2803436bbc8c28debd8 Mon Sep 17 00:00:00 2001 From: Adrian Greeve Date: Fri, 11 Apr 2014 13:41:16 +0800 Subject: [PATCH] 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. --- tag/manage.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tag/manage.php b/tag/manage.php index 61929eb8eb5..8f2636997e8 100644 --- a/tag/manage.php +++ b/tag/manage.php @@ -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("