Permalink
Browse files

MDL-16355 Do not set lesson maxgrade to 100 but use the real value wi…

…thout multfactor
  • Loading branch information...
mudrd8mz
mudrd8mz committed Sep 15, 2008
1 parent 4579407 commit 353f7ee98166b2d73ade34cad2eb93be16924aee
Showing with 1 addition and 3 deletions.
  1. +1 −3 mod/lesson/lib.php
View
@@ -417,13 +417,11 @@ function lesson_grade_item_update($lesson, $grades=NULL) {
if ($lesson->grade > 0) {
$params['gradetype'] = GRADE_TYPE_VALUE;
$params['grademax'] = 100; //means 100%
$params['grademax'] = $lesson->grade;
$params['grademin'] = 0;
$params['multfactor'] = $lesson->grade / 100.0;
} else {
$params['gradetype'] = GRADE_TYPE_NONE;
$params['multfactor'] = 1.0;
}
if ($grades === 'reset') {

0 comments on commit 353f7ee

Please sign in to comment.