Skip to content

Commit

Permalink
MDL-30704 quiz_overview: fixup, add missing rescaling.
Browse files Browse the repository at this point in the history
Thanks Micheal de Raadt for catching this in testing.
  • Loading branch information
timhunt authored and stronk7 committed Dec 21, 2011
1 parent 1b5afe6 commit 0f97c8a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions mod/quiz/report/overview/overview_table.php
Expand Up @@ -81,6 +81,7 @@ protected function add_average_row($label, $users) {
SELECT AVG(quiza.sumgrades) AS grade, COUNT(quiza.sumgrades) AS numaveraged SELECT AVG(quiza.sumgrades) AS grade, COUNT(quiza.sumgrades) AS numaveraged
FROM $from FROM $from
WHERE $where", $params); WHERE $where", $params);
$record->grade = quiz_rescale_grade($record->grade, $this->quiz);


if ($this->is_downloading()) { if ($this->is_downloading()) {
$namekey = 'lastname'; $namekey = 'lastname';
Expand Down

0 comments on commit 0f97c8a

Please sign in to comment.