Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

MDL-15036 Did not work with PostgreSQL

  • Loading branch information...
commit f685affe2331ac326475bc6b532f64f28e25053e 1 parent 4981443
mudrd8mz authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  grade/report/outcomes/index.php
View
2  grade/report/outcomes/index.php
@@ -63,7 +63,7 @@
// Get average grades for each item
if (is_array($report_info[$outcomeid]['items'])) {
foreach ($report_info[$outcomeid]['items'] as $itemid => $item) {
- $sql = "SELECT id, AVG(finalgrade) AS `avg`, COUNT(finalgrade) AS `count`
+ $sql = "SELECT itemid, AVG(finalgrade) AS avg, COUNT(finalgrade) AS count
FROM {$CFG->prefix}grade_grades
WHERE itemid = $itemid
GROUP BY itemid";
Please sign in to comment.
Something went wrong with that request. Please try again.