Permalink
Browse files

MDL-31713 core_grade: added updating of grade min and max to update_f…

…inal_grade()
  • Loading branch information...
1 parent e4f7ad5 commit 501afed36a3e169f5b983b4e0dafb633c2f98608 @andyjdavis andyjdavis committed Apr 21, 2013
Showing with 5 additions and 0 deletions.
  1. +5 −0 lib/grade/grade_item.php
View
5 lib/grade/grade_item.php
@@ -1503,6 +1503,11 @@ public function update_final_grade($userid, $finalgrade=false, $source=NULL, $fe
$oldgrade->feedback = $grade->feedback;
$oldgrade->feedbackformat = $grade->feedbackformat;
+ // MDL-31713 rawgramemin and max must be up to date so conditional access %'s works properly.
+ $grade->rawgrademin = $this->grademin;
+ $grade->rawgrademax = $this->grademax;
+ $grade->rawscaleid = $this->scaleid;
+
// changed grade?
if ($finalgrade !== false) {
if ($this->is_overridable_item()) {

0 comments on commit 501afed

Please sign in to comment.