diff --git a/grade/edit/tree/index.php b/grade/edit/tree/index.php index 17aa4aafa19..3d3e5f3c2d1 100644 --- a/grade/edit/tree/index.php +++ b/grade/edit/tree/index.php @@ -159,7 +159,9 @@ if ($moving) { print_single_button('outcomeitem.php', array('courseid'=>$course->id), get_string('addoutcomeitem', 'grades'), 'get'); } //print_single_button('index.php', array('id'=>$course->id, 'action'=>'autosort'), get_string('autosort', 'grades'), 'get'); + echo "

"; print_single_button('index.php', array('id'=>$course->id, 'action'=>'synclegacy'), get_string('synclegacygrades', 'grades'), 'get'); + helpbutton('synclegacygrades', get_string('synclegacygrades', 'grades'), 'grade'); } echo ''; print_footer($course); @@ -258,7 +260,7 @@ function element_deletable($element) { } $grade_item = $element['object']; - + if ($grade_item->itemtype != 'mod' or $grade_item->is_outcome_item() or $grade_item->gradetype == GRADE_TYPE_NONE) { return true; } diff --git a/lang/en_utf8/help/grade/synclegacygrades.html b/lang/en_utf8/help/grade/synclegacygrades.html new file mode 100644 index 00000000000..b2d40dce883 --- /dev/null +++ b/lang/en_utf8/help/grade/synclegacygrades.html @@ -0,0 +1,3 @@ +

Synchronise legacy grades

+ +

The term 'legacy grades' refers to grades from versions of Moodle prior to 1.9. When upgrading, all legacy grades should be included in the Moodle 1.9 gradebook. The 'Synchronise legacy grades' button checks whether this is the case, and if necessary adds any missing legacy grades to the Moodle 1.9 gradebook.