From: moodler Date: Tue, 4 Sep 2007 05:56:19 +0000 (+0000) Subject: Updating grades will update the grade_item too X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=f4d24ff5c3de63cf9a141844a5f8bb2c0e8ce7e4;p=moodle.git Updating grades will update the grade_item too --- 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 +?>