Merge branch 'MDL-33878' of git://github.com/netspotau/moodle-mod_assign

This commit is contained in:
Dan Poltawski 2012-06-21 15:21:13 +08:00
commit 75c8a109e5

View File

@ -3349,8 +3349,10 @@ class assign {
// now get the feedback
if ($gradebookplugin) {
$grade = $this->get_user_grade($result->userid, false);
$gradebookgrade->feedbacktext = $gradebookplugin->text_for_gradebook($grade);
$gradebookgrade->feedbackformat = $gradebookplugin->format_for_gradebook($grade);
if ($grade) {
$gradebookgrade->feedbacktext = $gradebookplugin->text_for_gradebook($grade);
$gradebookgrade->feedbackformat = $gradebookplugin->format_for_gradebook($grade);
}
}
$grades[$gradebookgrade->userid] = $gradebookgrade;
}