Skip to content

Commit

Permalink
MDL-31713 core_grade: added updating of grade min and max to update_f…
Browse files Browse the repository at this point in the history
…inal_grade()
  • Loading branch information
andyjdavis committed May 7, 2013
1 parent 12091f2 commit a035b96
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/grade/grade_item.php
Expand Up @@ -1503,6 +1503,11 @@ public function update_final_grade($userid, $finalgrade=false, $source=NULL, $fe
$oldgrade->feedback = $grade->feedback; $oldgrade->feedback = $grade->feedback;
$oldgrade->feedbackformat = $grade->feedbackformat; $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? // changed grade?
if ($finalgrade !== false) { if ($finalgrade !== false) {
if ($this->is_overridable_item()) { if ($this->is_overridable_item()) {
Expand Down

0 comments on commit a035b96

Please sign in to comment.