mirror of
https://github.com/moodle/moodle.git
synced 2025-08-08 02:16:41 +02:00
MDL-31060: removed unnecessary fields from query which also caused problems in MSSQL
This commit is contained in:
parent
702cb900c3
commit
41fb628f93
1 changed files with 1 additions and 2 deletions
|
@ -144,8 +144,7 @@ if ($searchdata = $searchform->get_data()) {
|
|||
}
|
||||
|
||||
// construct the SQL to find all matching templates
|
||||
$sql = "SELECT DISTINCT gd.id, gd.areaid, gd.name, gd.description, gd.descriptionformat, gd.timecreated,
|
||||
gd.usercreated, gd.timemodified, gd.usermodified
|
||||
$sql = "SELECT DISTINCT gd.id, gd.areaid, gd.name, gd.usercreated
|
||||
FROM {grading_definitions} gd
|
||||
JOIN {grading_areas} ga ON (gd.areaid = ga.id)
|
||||
JOIN {context} cx ON (ga.contextid = cx.id)";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue