From: gustav_delius Date: Sat, 22 Jan 2005 16:13:08 +0000 (+0000) Subject: previously I had forgotten to save sumgrades X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=873b77f0f56b4189a3fce56ac6a00ad9b86cc496;p=moodle.git previously I had forgotten to save sumgrades --- 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);