From f81dc1222d8c6c549227eae4f46acf7a3e22eb00 Mon Sep 17 00:00:00 2001 From: Raymond Wijaya <raymond.wijaya@netspot.com.au> 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 3701d08f493..59532492c80 100644 --- a/mod/assign/locallib.php +++ b/mod/assign/locallib.php @@ -2795,7 +2795,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,