Skip to content

Commit

Permalink
MDL-33939 gradingform_guide: use correct max grade for scales.
Browse files Browse the repository at this point in the history
  • Loading branch information
danmarsden committed Oct 13, 2014
1 parent d3ff822 commit 711910e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion grade/grading/form/guide/lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -645,7 +645,8 @@ public function get_min_max_score() {
$returnvalue['maxscore'] = $maxscore;
$returnvalue['minscore'] = 0;
if (!empty($this->moduleinstance->grade)) {
$returnvalue['modulegrade'] = $this->moduleinstance->grade;
$graderange = make_grades_menu($this->moduleinstance->grade);
$returnvalue['modulegrade'] = count($graderange) - 1;
}
return $returnvalue;
}
Expand Down

0 comments on commit 711910e

Please sign in to comment.