mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 08:26:37 +02:00
Merge branch 'MDL-26571_lesson_scale' of git://github.com/andyjdavis/moodle
This commit is contained in:
commit
dca072aedc
1 changed files with 3 additions and 0 deletions
|
@ -469,6 +469,9 @@ function lesson_grade_item_update($lesson, $grades=NULL) {
|
|||
$params['gradetype'] = GRADE_TYPE_VALUE;
|
||||
$params['grademax'] = $lesson->grade;
|
||||
$params['grademin'] = 0;
|
||||
} else if ($lesson->grade < 0) {
|
||||
$params['gradetype'] = GRADE_TYPE_SCALE;
|
||||
$params['scaleid'] = -$lesson->grade;
|
||||
} else {
|
||||
$params['gradetype'] = GRADE_TYPE_NONE;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue