Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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

…inal_grade()
  • Loading branch information...
commit a035b96fd52da924818cf270ab2562ef6e18d6aa 1 parent 12091f2
@andyjdavis andyjdavis authored
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()) {
Please sign in to comment.
Something went wrong with that request. Please try again.