From 873b77f0f56b4189a3fce56ac6a00ad9b86cc496 Mon Sep 17 00:00:00 2001 From: gustav_delius Date: Sat, 22 Jan 2005 16:13:08 +0000 Subject: [PATCH] previously I had forgotten to save sumgrades --- mod/quiz/edit.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/mod/quiz/edit.php b/mod/quiz/edit.php index 3bee558dc0..37e1231c95 100644 --- a/mod/quiz/edit.php +++ b/mod/quiz/edit.php @@ -241,7 +241,10 @@ echo ''; print_simple_box_start("center", "100%", $THEME->cellcontent2); print_heading($modform->name); - quiz_print_question_list($modform->questions, $modform->grades); + $sumgrades = quiz_print_question_list($modform->questions, $modform->grades); + if (!set_field('quiz', 'sumgrades', $sumgrades, 'id', $modform->instance)) { + error('Failed to set sumgrades'); + } if ($attemptcount = count_records_select("quiz_attempts", "quiz = '$modform->instance' AND timefinish > 0")) { $strviewallanswers = get_string("viewallanswers","quiz",$attemptcount); -- 2.39.5