Skip to content

Commit

Permalink
MDL-13049 Grading grade must be converted to int before saving in dat…
Browse files Browse the repository at this point in the history
…abase
  • Loading branch information
mudrd8mz committed Nov 13, 2009
1 parent d58832a commit 53bf472
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mod/workshop/lib.php
Expand Up @@ -1757,7 +1757,7 @@ function workshop_grade_assessments($workshop, $verbose=false) {
set_field("workshop_assessments", "timegraded", $timenow, "id", $assessment->id);
} else {
// it's one of the pack, compare with the best...
$gradinggrade = workshop_compare_assessments($workshop, $best, $assessment);
$gradinggrade = round(workshop_compare_assessments($workshop, $best, $assessment));
// ...and save the grade for the assessment
set_field("workshop_assessments", "gradinggrade", $gradinggrade, "id", $assessment->id);
set_field("workshop_assessments", "timegraded", $timenow, "id", $assessment->id);
Expand Down

0 comments on commit 53bf472

Please sign in to comment.