From 3f897939b23d5f429a4c73e8d900e64e320778f2 Mon Sep 17 00:00:00 2001 From: Raymond Wijaya Date: Mon, 3 Dec 2012 15:04:43 +1030 Subject: [PATCH] MDL-36966 Assignment: Bug - Student submission appears graded by themselves. Fix a bug when a student editing his submission after it has been graded, it changes the 'graded by' details to the student's name in the feeback summary --- mod/assign/locallib.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mod/assign/locallib.php b/mod/assign/locallib.php index 6163841679b..cdfb34f91ff 100644 --- a/mod/assign/locallib.php +++ b/mod/assign/locallib.php @@ -2874,7 +2874,7 @@ class assign { } $gradeddate = $gradebookgrade->dategraded; - $grader = $DB->get_record('user', array('id'=>$gradebookgrade->usermodified)); + $grader = $DB->get_record('user', array('id'=>$grade->grader)); $feedbackstatus = new assign_feedback_status($gradefordisplay, $gradeddate,