MDL-35392 mod_assign: Push feedback to gradebook when releasing grades

When bulk changing workflow status a mismatch in variable
names meant that feedback wasn't being sent to the gradebook.
This commit is contained in:
Zachary Durber 2014-12-15 09:58:29 +08:00
parent 95751e81ac
commit 3547f186a8

View File

@ -7092,7 +7092,7 @@ class assign {
if ($gradebookplugin) {
$grade = $this->get_user_grade($result->userid, false);
if ($grade) {
$gradebookgrade->feedbacktext = $gradebookplugin->text_for_gradebook($grade);
$gradebookgrade->feedback = $gradebookplugin->text_for_gradebook($grade);
$gradebookgrade->feedbackformat = $gradebookplugin->format_for_gradebook($grade);
}
}