From c1735baff534673adf4741ef7a4e44b4d25d5fc7 Mon Sep 17 00:00:00 2001 From: Adrian Greeve Date: Tue, 1 Oct 2013 17:53:22 +0800 Subject: [PATCH] MDL-41967 - Gradebook: Fixed an sql syntax error for gradebook custom profile fields. --- grade/lib.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/grade/lib.php b/grade/lib.php index 7639e0825ab..d3f13ac4d40 100644 --- a/grade/lib.php +++ b/grade/lib.php @@ -191,7 +191,7 @@ class graded_users_iterator { LEFT JOIN (SELECT * FROM {user_info_data} WHERE fieldid = :cf$customfieldscount) cf$customfieldscount ON u.id = cf$customfieldscount.userid"; - $userfields .= ", cf$customfieldscount.data AS 'customfield_{$field->shortname}'"; + $userfields .= ", cf$customfieldscount.data AS customfield_{$field->shortname}"; $params['cf'.$customfieldscount] = $field->customid; $customfieldscount++; }