mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 08:26:37 +02:00
MDL-12104, gradebook is showing 2 scales together
This commit is contained in:
parent
82e74e90cc
commit
914ea0028a
1 changed files with 4 additions and 0 deletions
|
@ -726,6 +726,10 @@ class grade_report_grader extends grade_report {
|
||||||
|
|
||||||
$scales = explode(",", $scale->scale);
|
$scales = explode(",", $scale->scale);
|
||||||
// reindex because scale is off 1
|
// reindex because scale is off 1
|
||||||
|
|
||||||
|
// MDL-12104 some previous scales might have taken up part of the array
|
||||||
|
// so this needs to be reset
|
||||||
|
unset($scaleopt);
|
||||||
$i = 0;
|
$i = 0;
|
||||||
foreach ($scales as $scaleoption) {
|
foreach ($scales as $scaleoption) {
|
||||||
$i++;
|
$i++;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue