From f4d24ff5c3de63cf9a141844a5f8bb2c0e8ce7e4 Mon Sep 17 00:00:00 2001 From: moodler Date: Tue, 4 Sep 2007 05:56:19 +0000 Subject: [PATCH] Updating grades will update the grade_item too --- mod/quiz/lib.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mod/quiz/lib.php b/mod/quiz/lib.php index f072ae4756..5f9c163c09 100644 --- a/mod/quiz/lib.php +++ b/mod/quiz/lib.php @@ -266,6 +266,7 @@ function quiz_update_grades($quiz=null, $userid=0, $nullifnone=true) { } if ($quiz != null) { + quiz_grade_item_update($quiz); // Recreate it if necessary if ($grades = quiz_get_user_grades($quiz, $userid)) { grade_update('mod/quiz', $quiz->course, 'mod', 'quiz', $quiz->id, 0, $grades); @@ -909,4 +910,4 @@ function quiz_check_file_access($attemptid, $questionid) { // otherwise, this user does not have permission return false; } -?> \ No newline at end of file +?> -- 2.39.5