From 4c1d7cf9b67eb5e16bf3bd60cd6dd0de571cccec 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 2564d0e2235..81b61868e6c 100644 --- a/mod/assign/locallib.php +++ b/mod/assign/locallib.php @@ -2192,7 +2192,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, -- 2.11.4.GIT