Skip to content

Commit

Permalink
previously I had forgotten to save sumgrades
Browse files Browse the repository at this point in the history
  • Loading branch information
gustav_delius committed Jan 22, 2005
1 parent 0fd764f commit 873b77f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion mod/quiz/edit.php
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,10 @@
echo '<tr><td width="50%" valign="top">';
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);
Expand Down

0 comments on commit 873b77f

Please sign in to comment.