Permalink
Browse files

fixed correct category not selected

  • Loading branch information...
1 parent eea4477 commit 9ad7ce6bca2195d8ef1478453c5a4301b40a8111 thepurpleblob committed Jun 23, 2004
Showing with 4 additions and 4 deletions.
  1. +1 −1 mod/quiz/multichoice.html
  2. +1 −1 mod/quiz/multiple.php
  3. +1 −1 mod/quiz/shortanswer.html
  4. +1 −1 mod/quiz/truefalse.html
@@ -4,7 +4,7 @@
<TR valign=top>
<TD align=right><P><B><?php print_string("category", "quiz") ?>:</B></P></TD>
<TD>
- <?php quiz_category_select_menu($course->id, true, true); ?>
+ <?php quiz_category_select_menu($course->id, true, true, $question->category); ?>
</TD>
</TR>
<TR valign=top>
@@ -129,7 +129,7 @@
print_string("category", "quiz");
echo ":</TD><TD>";
// choose_from_menu($categories, "category", "$category->id", "");
- quiz_category_select_menu($course->id, true, true );
+ quiz_category_select_menu($course->id, true, true, $category->id );
echo "</TR>";
echo "<TR><TD align=right>";
@@ -4,7 +4,7 @@
<TR valign=top>
<TD align=right><P><B><?php print_string("category", "quiz") ?>:</B></P></TD>
<TD>
- <?php quiz_category_select_menu($course->id, true, true); ?>
+ <?php quiz_category_select_menu($course->id, true, true, $question->category); ?>
</TD>
</TR>
<TR valign=top>
@@ -5,7 +5,7 @@
<TD align=right><P><B><?php print_string("category", "quiz") ?>:</B></P></TD>
<TD>
<?php
- quiz_category_select_menu($course->id, true, true);
+ quiz_category_select_menu($course->id, true, true, $question->category);
?>
</TD>
</TR>

0 comments on commit 9ad7ce6

Please sign in to comment.