MDL-46527 grades: grade_get_grades external function rewritten

This commit is contained in:
Juan Leyva
2014-10-21 12:33:40 +02:00
parent 3eeb53655e
commit 0fdb3d3fdc
3 changed files with 140 additions and 115 deletions
+1
View File
@@ -89,6 +89,7 @@ function grade_get_course_grades($courseid, $userid_or_ids=null) {
$grade->feedbackformat = $grade_grades[$userid]->feedbackformat;
$grade->usermodified = $grade_grades[$userid]->usermodified;
$grade->dategraded = $grade_grades[$userid]->get_dategraded();
$grade->datesubmitted = $grade_grades[$userid]->get_datesubmitted();
// create text representation of grade
if ($grade_item->needsupdate) {