Permalink
Browse files

MDL-30037: fixed bug with grade calculation

  • Loading branch information...
1 parent 0e2a1d7 commit 6184b84393000c66bc394968eb5e7e17bb7e5995 @marinaglancy marinaglancy committed Nov 2, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 grade/grading/form/rubric/lib.php
@@ -593,8 +593,8 @@ public function get_grade() {
$scores[] = $level['score'];
}
sort($scores);
- $minscore += $criterion['levels'][$scores[0]];
- $maxscore += $criterion['levels'][$scores[sizeof($scores)-1]];
+ $minscore += $scores[0];
+ $maxscore += $scores[sizeof($scores)-1];
}
if ($maxscore <= $minscore) {

0 comments on commit 6184b84

Please sign in to comment.